30.08.2011, 17:34
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
under OnPlayerDisconnect
under OnPlayerSpawn
under OnPlayerDeath
under OnPlayerCommandText
this has been made for testing
and that are all my setplayercolor functions
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);
pawn Код:
SetPlayerColor(playerid, COLOR_GREY);
gTeam[playerid] = TEAM_UNSPAWNED;
pawn Код:
gTeam[playerid] = TEAM_UNSPAWNED;
SetPlayerColor(playerid,COLOR_GREY);
pawn Код:
SetPlayerColor(playerid,COLOR_GREY);
gTeam[playerid] = TEAM_UNSPAWNED
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;
}
and that are all my setplayercolor functions