13.12.2014, 12:28
You have already defined it;
Now go under OnPlayerSpawn(playerid) or anywhere, use it like this:
You have defined it, but you did not use it, that's why PAWN has warned you.
pawn Код:
SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_TERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_TERRORISTS);
}
else if(gTeam[playerid] == TEAM_COUNTERTERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_COUNTERTERRORIS TS);
}
return 1;
}
pawn Код:
SetPlayerToTeamColor(playerid);