Originally Posted by Moustafa
pawn Код:
if (strcmp("/dispatch", cmdtext, true, 9) == 0) { if(GetPlayerTeam(playerid) != 5) return SendClientMessage(playerid,COLOR_RED, "Identification Error - You need rank 1 to do this."); new str[256], pname[256]; GetPlayerName(playerid, pname, 256); format(str, 256, ":: Dispatcher %s:%s", pname, cmdtext[9]); SendClientMessageToAll(COLOR_BLUE, str); return 1; }
Lol, the problem is in that: SendClientMessageToAll !
it should be like that:
pawn Код:
if (strcmp("/dispatch", cmdtext, true, 9) == 0) { if(GetPlayerTeam(playerid) != 5) return SendClientMessage(playerid,COLOR_RED, "Identification Error - You need rank 1 to do this."); new str[256], pname[256]; GetPlayerName(playerid, pname, 256); format(str, 256, ":: Dispatcher %s:%s", pname, cmdtext[9]); SendClientMessage(COLOR_BLUE, str); string SendClientMessage(playerid, COLOR_BLUE, " Your string "); return 1; }
I THINK SO IT IS RIGHT.. not sure!
|