im making a command for 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: im making a command for map.. (
/showthread.php?tid=82778)
im making a command for map.. -
Martin_Smith - 20.06.2009
wat is code to make u not visable on map?
Re: im making a command for map.. -
Grim_ - 20.06.2009
pawn Код:
public OnGameModeInit()
{
ShowPlayerMarkers(0);
return 1;
}
or if you would only like to not show one players, you'd have to use
pawn Код:
ShowPlayerMarkerForPlayer
under OnPlayerSpawn.
Re: im making a command for map.. -
Martin_Smith - 20.06.2009
i wanna make command so
Код:
/hide
{
//wat goes here
}
like that..
Re: im making a command for map.. -
Martin_Smith - 20.06.2009
wat do i put here?
Код:
if(strcmp(cmdtext,"/mapvis", true) == 0)
{
if(PlayerInfo[playerid][pRank] >= 8)
{
}
return 1;
}
Re: im making a command for map.. -
Grim_ - 20.06.2009
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: im making a command for map.. -
Martin_Smith - 20.06.2009
swift i been on that, but i dont understand how i just make the marker dissapear
Re: im making a command for map.. -
Grim_ - 20.06.2009
pawn Код:
if(strcmp(cmdtext, "/mapvis", true) == 0)
{
if(PlayerInfo[playerid][pRank] >= 8)
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
}
}
}