[HELP] ZCMD Issue
#1

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.....


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;
}
Reply


Messages In This Thread
[HELP] ZCMD Issue - by [UG]Scripter - 27.11.2010, 10:34
Re: [HELP] ZCMD Issue - by Jochemd - 27.11.2010, 10:39
Re: [HELP] ZCMD Issue - by [UG]Scripter - 27.11.2010, 10:41
Re: [HELP] ZCMD Issue - by Cameltoe - 27.11.2010, 10:52
Re: [HELP] ZCMD Issue - by [UG]Scripter - 29.11.2010, 09:37
Re: [HELP] ZCMD Issue - by Cameltoe - 29.11.2010, 13:18
Re: [HELP] ZCMD Issue - by Rachael - 29.11.2010, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)