Police suggestion (/backup)
4 posters
Page 1 of 1
Police suggestion (/backup)
Police cmd.
I was thinking about how annoying it is for me to be in the middle of a police chase and have someone ask for my location, having to stop driving to type and then see my suspect drive off.
So I thought of a command that would be able to automatically relay a officers position.
/backup
I was thinking about how annoying it is for me to be in the middle of a police chase and have someone ask for my location, having to stop driving to type and then see my suspect drive off.
So I thought of a command that would be able to automatically relay a officers position.
/backup
- Spoiler:
if(strcmp(cmd,"/backup",true)==0)
{
#pragma unused cmdtext
new ran[24];
GetPlayerName(playerid,ran,sizeof(ran));
if(IsACop(playerid))
{
if(BackupCaller == playerid && BackupCheck())
{
BackupCaller = 999;
for(new ra=0; ra<MAX_PLAYERS; ra++)
{
if(IsPlayerConnected(ra) && IsACop(ra))
{
DisablePlayerCheckpoint(ra);
SendClientMessage(ra,COLOR_LIGHTGREEN,"Backup canceled.");
}
}
return 1;
}
BackupCaller = playerid;
else if(PlayerInfo[BackupCaller][pRank] == 11) { format(string, sizeof(string), "** Sheriff Cadet %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 10) { format(string, sizeof(string), "** Sheriff Deputy %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 9) { format(string, sizeof(string), "** Senoir Sheriff Deputy %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == { format(string, sizeof(string), "** Corporal %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 7) { format(string, sizeof(string), "**Sergeant%s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 6) { format(string, sizeof(string), "** 2nd Lieutenant %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 5) { format(string, sizeof(string), "** 1st Lieutenant %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 4) { format(string, sizeof(string), "** Captain%s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 3) { format(string, sizeof(string), "** Reserve Under Sheriff %s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 2) { format(string, sizeof(string), "** Under Sheriff%s: Requesting Backup, respond Code 3, over. **", ran); }
else if(PlayerInfo[BackupCaller][pRank] == 1) { format(string, sizeof(string), "**Sheriff %s: Requesting Backup, respond Code 3, over. **", ran); }
else
{
format(string, sizeof(string), "** Sheriff Cadet %s: Requesting Backup, respond Code 3, over. **", ran);
}
SendClientMessage(BackupCaller,TEAM_BLUE_COLOR,string);
SendClientMessage(BackupCaller,COLOR_YELLOW,"** DISPATCH: We have received your backup call and have alerted all units. **");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s uses their radio.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
for(new ra=0; ra<MAX_PLAYERS; ra++)
{
if(IsPlayerConnected(ra) && IsACop(ra) && ra != BackupCaller)
{
SendClientMessage(ra,TEAM_BLUE_COLOR,string);
SendClientMessage(ra,COLOR_YELLOW,"** DISPATCH: An officer has requested backup. Respond Code 3 [With Lights and Sirens] **");
}
}
return 1;
}
}
Last edited by Kieran_Irving on Tue Mar 29, 2011 8:26 pm; edited 1 time in total
Kyol Daniels- Donator
- Posts : 224
Join date : 2011-02-25
Re: Police suggestion (/backup)
FAILSPOILER.. but /agree
ArielV- E.M.S.
- Posts : 962
Join date : 2011-03-28
Age : 30
Location : A Treehouse.
Re: Police suggestion (/backup)
Smilie inside of the code. xD
Support,it's hard to type and chase.
Support,it's hard to type and chase.
Nicolas Djordjevic- In Game Administrator
- Posts : 1098
Join date : 2011-02-05
Age : 28
Location : Serbia
Re: Police suggestion (/backup)
Support, but only if cops in SD vehicles or at the HQ can see the backups. No one walking around outside or running through the garage.
Similar topics
» Corrupt police
» Corrupt police
» New police vehicles
» SPU's [Special Police Units] [v4.0] [0.3c]
» Police Station
» Corrupt police
» New police vehicles
» SPU's [Special Police Units] [v4.0] [0.3c]
» Police Station
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum