23.02.2010, 02:11
this is part of the command im working on every other faction can use it but ems and fire heres the code
and the SendMessageToEMS part
if i use /r as ems like /r this is a test nothing shows as if it ant working and it only seems to be ems and fire
Код:
if(gteam[playerid] == Team_EMS || gteam[playerid] == Team_Fire){ GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "(DPSCOM) EMS-%d: %s, over", playerid, cmdtext[3]); SendMessageToEMS(string);
Код:
SendMessageToEMS(const str[]) { for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (gteam[i]==Team_Fire || gteam[i]==Team_EMS) { SendClientMessage(i, COLOR_RED, str); } } } }