27.03.2011, 17:11
Quote:
Im still confused how do i make more commands then?? Like how do i add more the link is confusing too. Sorry. I might be a pain in the ass...
![]() Like can i have an example on how to repeat this for more commands? |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cmd1", cmdtext, true, 10) == 0)
{
//DO YOUR THING
return 1;
}
if (strcmp("/cmd2", cmdtext, true, 10) == 0)
{
//DO YOUR THING
return 1;
}
//ECT....
return 0;
}