15.05.2010, 13:13
First Step: Put this on Script Header; #define invisible 0xFFFFFF00
Thats easy
I use the same function in my gamemode
its selfmade
example code! you have to edit your team variables.
//under OnPlayerUpdate
I can explain it that way:
SetPlayerMarkerForPlayer(playerid,i, ThePlayerColorForChatBox & ThePlayersMapColor);
To add a command to switch this function on/off u can simply use a variable.
Thats easy
I use the same function in my gamemode
its selfmade
example code! you have to edit your team variables.
//under OnPlayerUpdate
Код:
for(new i=0; i<MAXPLAYERS; i++) { if(gTeam[playerid] == your_Team_no1_here) { SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid) & invisible); } else if(gTeam[playerid] == your_Team_no2_here) { SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid) & invisible); } }
SetPlayerMarkerForPlayer(playerid,i, ThePlayerColorForChatBox & ThePlayersMapColor);
To add a command to switch this function on/off u can simply use a variable.