SA-MP Forums Archive
/find tracing continously - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /find tracing continously (/showthread.php?tid=299144)



/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(idCOLOR_LIGHTYELLOW2"[INFO:] Someone is tracking you.");
                                
format(stringsizeof(string), "[INFO:] Your tracking %s, checkpoint removed in 60 seconds."GetPlayerNameEx(id));
                                
SendClientMessage(playeridCOLOR_LIGHTYELLOW2string);
                                new 
Float:x,Float:y,Float:z;
                                
GetPlayerPos(id,x,y,z);
                                
SetPlayerCheckpoint(playerid,x,y,z,10.0);
                                
SetTimerEx("ClearCheckpointsForPlayer"60000false"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(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW2"[USAGE:] /find [playerid]");
                return 
1;
            }
            if(
TrackingPlayer[playerid] == 1)
            {
            
SendClientMessage(playeridCOLOR_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(idCOLOR_LIGHTYELLOW2"[INFO:] Someone is tracking you.");
                                
format(stringsizeof(string), "[INFO:] Your tracking %s, checkpoint removed in 60 seconds."GetPlayerNameEx(id));
                                
SendClientMessage(playeridCOLOR_LIGHTYELLOW2string);
                                  new 
Float:x,Float:y,Float:z;
                                
GetPlayerPos(id,x,y,z);
                                
SetPlayerCheckpoint(playerid,x,y,z,10.0);
                                
SetTimerEx("ClearCheckpointsForPlayer"60000false"i"playerid);
                                
TrackingPlayer[playerid] = 1;
                            }
                            else
                            {
                                
SendClientMessage(idCOLOR_LIGHTYELLOW2"[ERROR:] That players phone is not turned on! You cannot track it.");
                            }
                        }
                    }
                    else
                    {
                        
SendClientMessage(idCOLOR_LIGHTYELLOW2"[ERROR:] You can't track yourself.");
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_LIGHTYELLOW2"[ERROR:] Invalid Player ID.");
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_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!