/find tracing continously -
remyguys - 24.11.2011
When i do /find it just gives me the place where the player is and the dot stays there for 60 seconds.
I want that the dot keeps moving to where the player is going.
How can i do that?
I currently have these(most Important for this i think if need more ask please) lines.
PHP код:
if(IsPlayerConnected(id))
{
if(playerid != id)
{
if(id != INVALID_PLAYER_ID)
{
if(PhoneOnline[id] == 0)
{
SendClientMessage(id, COLOR_LIGHTYELLOW2, "[INFO:] Someone is tracking you.");
format(string, sizeof(string), "[INFO:] Your tracking %s, checkpoint removed in 60 seconds.", GetPlayerNameEx(id));
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, string);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerCheckpoint(playerid,x,y,z,10.0);
SetTimerEx("ClearCheckpointsForPlayer", 60000, false, "i", playerid);
TrackingPlayer[playerid] = 1;
Re: /find tracing continously -
Alberto_DR - 24.11.2011
then you gotta set the target player's name as a marker so the checkpoint would stay with it where ever it goes.
edit: This could help you.
pawn Код:
SetPlayerColor(giveplayerid, SCOLOR_MARKER)
Re: /find tracing continously -
remyguys - 30.11.2011
I tried a lot but i just can't seem to let it work.
How can i let them trace continously so a moving (red) dot on the minimap the whole time, and when his phone is off. Its gone.
PHP код:
if(strcmp(cmd, "/find", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /find [playerid]");
return 1;
}
if(TrackingPlayer[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your already finding someone.");
return 1;
}
new id = strval(tmp);
if (PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1||PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2||PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 3||PlayerInfo[playerid][pJob] == 3)
{
if(IsPlayerConnected(id))
{
if(playerid != id)
{
if(id != INVALID_PLAYER_ID)
{
if(PhoneOnline[id] == 0)
{
SendClientMessage(id, COLOR_LIGHTYELLOW2, "[INFO:] Someone is tracking you.");
format(string, sizeof(string), "[INFO:] Your tracking %s, checkpoint removed in 60 seconds.", GetPlayerNameEx(id));
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, string);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerCheckpoint(playerid,x,y,z,10.0);
SetTimerEx("ClearCheckpointsForPlayer", 60000, false, "i", playerid);
TrackingPlayer[playerid] = 1;
}
else
{
SendClientMessage(id, COLOR_LIGHTYELLOW2, "[ERROR:] That players phone is not turned on! You cannot track it.");
}
}
}
else
{
SendClientMessage(id, COLOR_LIGHTYELLOW2, "[ERROR:] You can't track yourself.");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Invalid Player ID.");
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] You are not eligible to use this command!");
}
}
return 1;
}
Re: /find tracing continously -
Suzan223Pian - 12.09.2013
A teacher, or the prison, more and more ares are considering the legal use of cell phone jammers, it has been a necessity of our daily life, I have got one from
http://www.jammerall.com/ for my family. so if you want to get one, you can go and visit it for more details. share with you!