rendered paste body if(strcmp(cmd, "/p", true) == 0) {
if(gTeam[playerid] == TEAM_POLICEHELP2)
{
new policecall[256];
new callerpolicename[MAX_PLAYER_NAME];
GetPlayerName(playerid, callerpolicename, MAX_PLAYER_NAME);
format(policecall,256,"*** %s 911 Message : %s", callerpolicename, cmdtext[2]);
stock SendMessageToTeam(TEAM_COP,COLOR_BLUE,policecall)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == team)
{
SendClientMessage(i,color,mess);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Please Dial 911 To get to the Emergency Switchboard /call911");
}
return 1;
}
}
}
}
}