24.06.2012, 18:50
When was the "zcmd" everything was fine, but now when is on "cmdtext" in text indicates a command /sg should show "USAGE: /sg [text]"
Код:
if(strcmp(cmdtext, "/sg", true) == 0) { new pranesimas2[150], vardas[MAX_PLAYER_NAME]; if(GetPlayerSkin(playerid) == 105 || GetPlayerSkin(playerid) == 106 || GetPlayerSkin(playerid) == 107) { if(sscanf(cmdtext,"s",pranesimas2)) return SendClientMessage(playerid,raudona,"USAGE: /sg [text]"); GetPlayerName(playerid, vardas, sizeof(vardas)); format( string, sizeof(string), "* Gang Grove member %s: %s", vardas, pranesimas2); SendClientMessageToAll(COLOR_LIMEGREEN, string); } else SendClientMessage(playerid,raudona,"[FunZoneLT]>> You are not this gang member."); return 1; }