Team markers
#1

Hey,how can i make if player has the same team as the other one it creates a marker on him ,and where to put the code at?
Reply
#2

Please explain a little more ...
Reply
#3

Lets say i have the same team as your,i will have a marker on,same for you
Reply
#4

Use SetPlayerCheckpoint, be creative.

wiki.sa-mp.com/SetPlayerCheckPoint
Reply
#5

....i know i have tried but it doesnt work for me,i have showplayermarkers 1 and everything but i want you to give me example...
Reply
#6

Anyone?
Reply
#7

pawn Код:
public OnPlayerSpawn(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) //foreach is better
    {
        if(!IsPlayerConnected(i)) continue;
        SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & ((GetPlayerTeam(i) == GetPlayerTeam(playerid)) ? (0x000000FF) : (0xFFFFFF00))));
        SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & ((GetPlayerTeam(playerid) == GetPlayerTeam(i)) ? (0x000000FF) : (0xFFFFFF00))));
    }
    return 1;
}
Reply
#8

doesnt work..,when i spawn it sets the other player's color to another color and doesnt show marker,i got showplayermarkers....
Reply
#9

The above code will technically only work properly if you use SetPlayerColor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)