SA-MP Forums Archive
Visible and Invisible in Map - 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: Visible and Invisible in Map (/showthread.php?tid=551809)



Visible and Invisible in Map - Arxalan - 21.12.2014

Hello , i am beginner to Pawn . I want a code for visible and invisible in map . I mean if someone want to be invisible from map so he can by just /hide and if he again want to visible he can by /unhide. I will be grateful to you guyz if you help me .
THanks


Re: Visible and Invisible in Map - Rog - 21.12.2014

u can just change the colour code.. in the end of the code just put two 00 like 0xE60000FF to 0xE6000000
it will make player invisible in map just like this u can make a command too /hide


Re: Visible and Invisible in Map - Ryz - 21.12.2014

Search in wikipedia and learn about 'SetPlayerMarkerForPlayer'


Re: Visible and Invisible in Map - JaKe Elite - 21.12.2014

pawn Код:
//Standard Looping
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
    }
}

//Foreach Looping
foreach(new i : Player)
{
    SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
}