Marker-question
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#3

iknow BUT... it says ToPlayer... OnPlayerSpawn-callback doesnt include any player except the spawned one :/
Reply
#4

Nametags: https://sampwiki.blast.hk/wiki/ShowNameTags
Markers: https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Reply
#5

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
Reply
#6

Do you mean that if someone types /Taxi, then their marker will be shown while other player's markers won't?
Reply
#7

correct
Reply
#8

Easier just to say Client side Checkpoints.
Reply
#9

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;
}
Reply
#10

Your code fails! ShowPlayerMarkers(0); doesnt work with SetPlayerMarkerForPlayer! -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)