Role Play Chat Commands
#8

Quote:
Originally Posted by BoboRi
Посмотреть сообщение
Ok I will try to explain you. Is very simple.

So the first thing you need to know is that if you are making the command with ZCMD you will NOT put it under public
pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
but you will put it outside this. In the bottom of your script.

The second thing is including ZCMD in the script.
You include it by writing
pawn Код:
#include <zcmd>
at the top of the script.

Now I will show you the difference on the simple kick command.

So This is how are you writing now the command:
pawn Код:
if(strcmp(cmdtext, "/kick") == 0)
     {
         Kick(playerid);
         return 1;
     }
In ZCMD you will write it like this:
pawn Код:
CMD:kick(playerid, params[])
     {
         Kick(playerid);
         return 1;
     }
It's very simple and it doesen't slow your script.
And it's easy to convert
Thanks a lot bro', where can I get the zcmd include?
Reply


Messages In This Thread
Role Play Chat Commands - by Jonesy96 - 28.11.2011, 18:48
Re: Role Play Chat Commands - by SmiT - 28.11.2011, 18:54
Re: Role Play Chat Commands - by Ash. - 28.11.2011, 18:54
Re: Role Play Chat Commands - by Jonesy96 - 28.11.2011, 18:57
Re: Role Play Chat Commands - by Ash. - 28.11.2011, 19:05
Re: Role Play Chat Commands - by Jonesy96 - 28.11.2011, 19:10
Re: Role Play Chat Commands - by BoboRi - 28.11.2011, 21:47
Re: Role Play Chat Commands - by Jonesy96 - 29.11.2011, 14:53
Re: Role Play Chat Commands - by Kostas' - 29.11.2011, 14:56
Re: Role Play Chat Commands - by Jonesy96 - 29.11.2011, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)