View Single Post
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 03-11-2013 , 14:50   Re: return's .. need some explanations
Reply With Quote #4

Nope, I mean loops
Code:
for (new client = 1; client <= MaxClients; client++) {     // Make sure all players is in game     if (IsClientInGame(client))     {         // Ignore admins from being switched if immunity is enabled         if (GetConVar[SwitchTeamsImmunity][Value] && GetUserAdmin(client) != INVALID_ADMIN_ID) continue;         if (GetClientTeam(client) == DODTeam_Allies) // is player on allies?         {             // Yep, get the other team             ChangeClientTeam(client, DODTeam_Spectator);             ChangeClientTeam(client, DODTeam_Axis);             ShowVGUIPanel(client, "class_ger", INVALID_HANDLE, false);         }         else if (GetClientTeam(client) == DODTeam_Axis) // Nope.avi         {             // Needed to spectate players to switching teams without deaths (DoD:S bug: you dont die when you join spectators)             ChangeClientTeam(client, DODTeam_Spectator);             ChangeClientTeam(client, DODTeam_Allies);             ShowVGUIPanel(client, "class_us", INVALID_HANDLE, false);         }     } }
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline