Marker-question - 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: Marker-question (
/showthread.php?tid=86606)
Marker-question -
DeathOnaStick - 15.07.2009
Hey@all,
I have a problem: I try to make the player-marker invisible when the player spawns, but i dont know how... i dont want to set the players whole color to "invisible", just the marker... pls help!
Greetz,
DeathOnaStick
Re: Marker-question -
watkijkje - 15.07.2009
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: Marker-question -
DeathOnaStick - 15.07.2009
iknow BUT... it says ToPlayer... OnPlayerSpawn-callback doesnt include any player except the spawned one :/
Re: Marker-question -
coffeecup92 - 15.07.2009
Nametags: https://sampwiki.blast.hk/wiki/ShowNameTags
Markers: https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Re: Marker-question -
DeathOnaStick - 15.07.2009
I dont want every Marker just to disappear... I want to use SetPlayerMarkerForPlayer to do commands like /Taxi... but for that i need the others to be invisible at first... thats the problem i have :/ Would i use ShowPlayerMarkers(0); they would be totally disabled
Re: Marker-question -
coffeecup92 - 15.07.2009
Do you mean that if someone types /Taxi, then their marker will be shown while other player's markers won't?
Re: Marker-question -
DeathOnaStick - 15.07.2009
correct
Re: Marker-question -
Abernethy - 15.07.2009
Easier just to say Client side Checkpoints.
Re: Marker-question -
coffeecup92 - 15.07.2009
pawn Код:
public OnGameModeInit()
{
ShowPlayerMarkers(false);
}
pawn Код:
if (strcmp("/taxi", cmdtext, true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
SetPlayerMarkerForPlayer(i, playerid, YourColor);
return 1;
}
Re: Marker-question -
DeathOnaStick - 15.07.2009
Your code fails! ShowPlayerMarkers(0); doesnt work with SetPlayerMarkerForPlayer! -.-