Commands
#3

Seems like a simple use of "if" statement and some variables.

You can simply add "if" in a command and check if player's variable equals ( == ) the value needed to do something. If it does, it will do what you want it to do - if not, simply send an error message using "SendClientMessage" that you are not donator or something like that.

To provide the use of command you have to set the variable. For that you have to set player's variable equal to the value needed to do something.

I sugges you to take a look at some scripts in this forum and use a lot of SA-MP wiki.
Reply


Messages In This Thread
Commands - by Jos3y - 11.06.2011, 15:16
Re: Commands - by WarServers - 11.06.2011, 16:35
Re: Commands - by HP - 11.06.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)