CLEO CLEO Password System Help

Joined
Dec 22, 2018
Messages
3
Likes
0
Points
1
1
#1
Hello! I'm trying to make a password system, like when you type [/pass <your password>] to activate some commands, for an example [/so]. I think that I need to use 0C29 but I don't know how. Can you help me, please?
 
Last edited:

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
61
Likes
1
Points
8
#2
Well firstly you could use 0C14 and as you type /pass <password / register>. Register can be used in case the player doesn't have a password set yet, after the player registers their password, write it to an .ini file. Then when you type /pass <password> you have to get the string from a .ini file and if the string from SAMP.IsCommandTyped is equal to the variable that has the string from .ini file, then you can use whatever command and eventually write int to .ini file state, so in case the player didn't put their password in, they can't use any command, if that's what you want. I hope I've been helpful :)
 
Top