16.01.2012, 15:09
Topic says all "Can i use ZCMD and Strcmp together in one Script?"
Place it under the OnPlayerCommandText callback to check what command the player has entered.
|
CMD:test(playerid, params[ ] )
{
if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /test <first / second>");
if(strcmp(params, "first", true) == 0)
{
// First test
}
else if(strcmp(params, "second", true) == 0)
{
// Second Test
}
return 1;
}