12.03.2012, 20:23
Code:
public OnPlayerSpawn(playerid) { SetPlayerWantedLevel(playerid,0); if(gTeam[playerid] == Army) { new file[256]; format(file, sizeof(file), SERVER_USER_FILE, GetName(playerid)); SetPlayerColor(playerid,VIOLET); if(dini_Int(file, "IsArmy") != 1) { GameTextForPlayer(playerid,"~r~You Have To Be ~g~Army ~n~To Use This!",4000,1); ForceClassSelection(playerid); SetPlayerHealth(playerid,0.0); } /*new Rob = 0; new Arm = 0; for( new i = 0; i != MAX_PLAYERS; i++) { if(gTeam[i] == Robbers) { Rob ++; } else if(gTeam[i] == Army) { Arm ++; } } if(Rob / 2 < Arm) { GameTextForPlayer(playerid,"~r~Please Wait For More Criminals Before Becoming Army!",4000,1); ForceClassSelection(playerid); SetPlayerHealth(playerid,0.0); }*/ }