27.11.2010, 10:34
Hey,
This command will not work. It's ment to allow a cop or firefight to type the command then a players ID and send the repsonse message to them.....
This command will not work. It's ment to allow a cop or firefight to type the command then a players ID and send the repsonse message to them.....
pawn Код:
COMMAND:res(playerid,giveplayerid,params[])
{
if(PlayerTeam[playerid] == Team_Fire || PlayerTeam[playerid] == Team_EMS || PlayerTeam[playerid] == Team_Sheriff || PlayerTeam[playerid] == Team_LVPD)
if(PlayerTeam[playerid] == Team_Civ) return SendClientMessage(playerid,COLOR_YELLOW,"[INFO]: Un-Authorised Command Attempt!");
new string[128];
new sendername[MAX_PLAYER_NAME];
//***** Sent to Civ ****
format(string, sizeof(string),"[CALL]: A call from 911: A unit Has Been Dispatched to investigate your call, Please stay where you are");
SendClientMessage(giveplayerid,COLOR_YELLOW,string);
// **** Police Radio ***
format(string,sizeof(string),"[911]: Unit %s reponding to %s's Call, Over",sendername,giveplayerid);
SendMessageToLaw(string);
// *** End ****
return 1;
}