Help with Class Sytem
#8

That is example only here is one good example (the one you looking for)

pawn Код:
stock ShowPlayerMarkerForPilot(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) {
            if(gTeam[playerid] == TEAM_PILOT) {
                if(gTeam[i] == TEAM_PILOT) return SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid));
            }
        }
    }
}
Now you can see your team mate player marker that is if you are pilot.

Modify the stock duplicate it then change the code all credits goes to me

if you didn't set player color the color will be black (as a return) so use SetPlayerColor before testing the stock
Reply


Messages In This Thread
Help with Class Sytem - by iOmar - 03.05.2012, 07:29
Re: Help with Class Sytem - by JaKe Elite - 03.05.2012, 07:35
Re: Help with Class Sytem - by iOmar - 03.05.2012, 07:38
Re: Help with Class Sytem - by JaKe Elite - 03.05.2012, 07:45
Re: Help with Class Sytem - by iOmar - 03.05.2012, 07:53
Re: Help with Class Sytem - by Admigo - 03.05.2012, 08:08
Re: Help with Class Sytem - by iOmar - 03.05.2012, 08:15
Re: Help with Class Sytem - by JaKe Elite - 03.05.2012, 08:20
Re: Help with Class Sytem - by Admigo - 03.05.2012, 08:21
Re: Help with Class Sytem - by $$inSane - 03.05.2012, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)