28.10.2012, 12:39
Quote:
i think so here what my server has .
SetPlayerTeamFromClass(playerid, classid) { if(classid >= 0 && classid <= 5) gTeam[playerid] = COP; else if(classid == 6) gTeam[playerid] = FBI; else if(classid == 7) gTeam[playerid] = SWAT; else if(classid == gTeam[playerid] = ARMY; else if(classid >= 9 && classid <= 11) gTeam[playerid] = Medic; else if(classid >= 12 && classid <= 30) gTeam[playerid] = CIVILIAN; } |
pawn Code:
if (!strcmp("/spike", cmdtext))
{
if(gTeam[playerid] == COP) {