18.11.2009, 23:05
I guess you didn't understand it.
Here's another example:
Here's another example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/mycommand_1", true) == 0)
{
// command's code.
return 1;
}
if(strcmp(cmdtext, "/mycommand_2", true) == 0)
{
// command's code.
return 1;
}
if(strcmp(cmdtext, "/mycommand_3", true) == 0)
{
// command's code.
return 1;
}
return SendClientMessage(playerid,COLOR_GREY,"Sorry Command not found in NatiosnRoleplay database.");
}

