SetPlayerColor does not work... wtf?
#5

so what variables/defines/functions must I check then?

about the remove a var thing, you were right, I didn't put stw[playerid] = 0; under OnPlayerConnect
only problem is team
sorry I had to ask for help for that, I could have found it myself too :/

Under OnPlayerConnect
pawn Код:
gTeam[playerid] = TEAM_UNSPAWNED;
    SetPlayerColor(playerid,COLOR_GREY);
under OnPlayerDisconnect
pawn Код:
SetPlayerColor(playerid, COLOR_GREY);
gTeam[playerid] = TEAM_UNSPAWNED;
under OnPlayerSpawn
pawn Код:
gTeam[playerid] = TEAM_UNSPAWNED;
        SetPlayerColor(playerid,COLOR_GREY);
under OnPlayerDeath
pawn Код:
SetPlayerColor(playerid,COLOR_GREY);
gTeam[playerid] = TEAM_UNSPAWNED
under OnPlayerCommandText
pawn Код:
if (strcmp("/drivers", cmdtext, true, 10) == 0)
        {
            //gTeam[playerid] = 0;
            gTeam[playerid] = TEAM_DRIVERS;
            SetPlayerColor(playerid,COLOR_SEXYGREEN); // green
            return 1;
        }

        if (strcmp("/b", cmdtext, true, 10) == 0)
        {
            //gTeam[playerid] = 0;
            gTeam[playerid] = TEAM_BANDIT;
            SetPlayerColor(playerid,COLOR_ORANGE); // orange
            return 1;
        }

        if (strcmp("/c", cmdtext, true, 10) == 0)
        {
            //gTeam[playerid] = 0;
            gTeam[playerid] = TEAM_COPS;
            SetPlayerColor(playerid,COLOR_ROYALBLUE); // blue
            return 1;
        }

        if (strcmp("/u", cmdtext, true, 10) == 0)
        {
            //gTeam[playerid] = 0;
            gTeam[playerid] = TEAM_UNSPAWNED;
            SetPlayerColor(playerid,COLOR_GREY); // grey
            return 1;
        }
this has been made for testing
and that are all my setplayercolor functions
Reply


Messages In This Thread
SetPlayerColor does not work... wtf? - by knackworst - 30.08.2011, 17:17
Re: SetPlayerColor does not work... wtf? - by [MWR]Blood - 30.08.2011, 17:22
Re: SetPlayerColor does not work... wtf? - by knackworst - 30.08.2011, 17:30
Re: SetPlayerColor does not work... wtf? - by [MWR]Blood - 30.08.2011, 17:33
Re: SetPlayerColor does not work... wtf? - by knackworst - 30.08.2011, 17:34
Re: SetPlayerColor does not work... wtf? - by [MWR]Blood - 30.08.2011, 17:37
Re: SetPlayerColor does not work... wtf? - by knackworst - 30.08.2011, 17:43
Re: SetPlayerColor does not work... wtf? - by [MWR]Blood - 30.08.2011, 17:46
Re: SetPlayerColor does not work... wtf? - by knackworst - 30.08.2011, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)