19.05.2010, 22:41
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?
/call 911 [reason] |
Originally Posted by ViruZZzZ_ChiLLL
Quote:
police officers, saying : ViruZZzZ_ChiLLL needs help [stating the reason here], at Grove Street! like that? |
Originally Posted by firedrumer03
Quote:
|
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
{
SetPlayerMapIcon(playerid, 1, x, y, z, 41, 1);
}
RemovePlayerMapIcon(playerid, 1);
new Float:calleridXYZ[3];
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); } }
Originally Posted by Coole210
O.o just do this at top of script
Код:
new Float:calleridXYZ[3]; Код:
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); } } |
Originally Posted by Coole210
O.o just do this at top of script
Код:
new Float:calleridXYZ[3]; Код:
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); } } |
DisablePlayerCheckpoint(playerid);