Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <l4d2sendproxy>
- #pragma semicolon 1
- public OnClientPostAdminCheck(client)
- {
- SendProxy_Hook(client, "m_iTeamNum", Prop_Int, ProxyCallBack);
- }
- public Action:ProxyCallBack(entity, const String:propname[], &iValue, element)
- {
- if (IsSurvivor(entity))
- {
- iValue = 2;
- return Plugin_Changed;
- }
- return Plugin_Continue;
- }
- stock bool:IsSurvivor(client)
- {
- if (client > 0 && client <= MaxClients && IsClientInGame(client) && (GetClientTeam(client) == 4 || GetClientTeam(client) ==2))
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment