How to add Locator
#1

hey i have a /call 911 system but i was wondering if someone could help me add to it so that when someone uses it and the dispatch gives it to the officers that a locator shows where the person called from?
Reply
#2

Quote:

/call 911 [reason]

and then, it will send as a client message to all, to the
police officers, saying :

ViruZZzZ_ChiLLL needs help [stating the reason here], at Grove Street!

like that?
Reply
#3

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:

/call 911 [reason]

and then, it will send as a client message to all, to the
police officers, saying :

ViruZZzZ_ChiLLL needs help [stating the reason here], at Grove Street!

like that?
not quite, i want it to add a marker on the map so cops and medics can see it
Reply
#4

Quote:
Originally Posted by firedrumer03
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:

/call 911 [reason]

and then, it will send as a client message to all, to the
police officers, saying :

ViruZZzZ_ChiLLL needs help [stating the reason here], at Grove Street!

like that?
not quite, i want it to add a marker on the map so cops and medics can see it
Nope, sorry, can't help you with that

This is my thought on it though :

On player command, the map icon must show to any police officers
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
{
SetPlayerMapIcon(playerid, 1, x, y, z, 41, 1);
}
Then when the player is now safe or anything

/done or sumthing
pawn Код:
RemovePlayerMapIcon(playerid, 1);
The map icon id 41 is the
Reply
#5

O.o just do this at top of script

Код:
new Float:calleridXYZ[3];
then in command for /call 911 add:

Код:
GetPlayerPos(playerid,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i == cop) //just example
{
SetPlayerCheckpoint(i,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2],3);
}
}
Reply
#6

Quote:
Originally Posted by Coole210
O.o just do this at top of script

Код:
new Float:calleridXYZ[3];
then in command for /call 911 add:

Код:
GetPlayerPos(playerid,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i == cop) //just example
{
SetPlayerCheckpoint(i,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2],3);
}
}
This is what im looking for i'll try it out thanx
Reply
#7

Quote:
Originally Posted by Coole210
O.o just do this at top of script

Код:
new Float:calleridXYZ[3];
then in command for /call 911 add:

Код:
GetPlayerPos(playerid,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i == cop) //just example
{
SetPlayerCheckpoint(i,calleridXYZ[0],calleridXYZ[1],calleridXYZ[2],3);
}
}
ok i got it to work with my script but when an officer enters it i doesn't clear, how to fix that or way to set a timer on it?
Reply
#8

on checkpoint enter clear it
Reply
#9

ok i got that part working now im try to modify it for the /backup command for the police and i can get it to set and to clear when someone enters, but how can i get it to clear when the person that used /backup uses /backupclear?

Sorry for all the questions about this but im semi new to scripting and this is my first time scripting a locator like this, i really appreciate all the help.
Reply
#10

use
Код:
DisablePlayerCheckpoint(playerid);
to disable a checkpoint for a specific player!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)