15.05.2012, 13:11
i got here its pretty Simple
Код:
CMD:smstoall(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 1) { SendClientMessageEx(playerid, COLOR_GREY, "You are not authorized to use that command!"); return 1; } new string[128]; if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /smstoall [sms text]"); format(string, sizeof(string), "SMS: %s, Sender: SENDER (143)",params); if (gTeam[playerid] < 3){SendClientMessageEx(playerid, COLOR_YELLOW, string);} SendEnemyMessage(COLOR_YELLOW, string); foreach(Player, i) { if(gTeam[i] >= 3 && gPlayerSpawned[i]) { RingTone[i] =20; } } return 1; }