25.04.2012, 13:23
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/test", cmdtext, true, 5) == 0) // string value for /test command will be 5 rather than 10
{
SendClientMessage(playerid, COLOR_WHITE, "Test");
return 1;
}
return 0;
}