All pastes #234379 Raw Edit

Stuff

public text v1 · immutable
·published 2006-11-02 14:17 UTC
rendered paste body
if (strcmp(cmdtext, "/r", true)==0)
{
if (gTeam[playerid] == TEAM_CIVILLIAN) {
        SendPlayerFormattedText(playerid,"The police radio is for cops only",0);
} else {
  new gangChat[256];
      new senderName[MAX_PLAYER_NAME];
      new stringg[256];
      new tmp[256];
tmp = strrest(cmdtext, idx);
if(!strlen(tmp)) {
GetPlayerName(playerid, senderName, sizeof(senderName));
format(stringg, sizeof(stringg),"[Police Radio] %s: %s", senderName, gangChat,tmp);
  for (new i=0; i <MAX_PLAYERS; i++)
{
if ((IsPlayerConnected(i)) && (gTeam[i] == TEAM_COP)) {
SendClientMessage(i, COLOR_BLUE, stringg);
    }
}
}
return 1;
}
return 1;
}