CLEO Help CLEO Password System Help

CLEO related

UberSilence

New member
Joined
Dec 22, 2018
Messages
2
Reaction score
0
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
353
Reaction score
23
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