Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sdktools
- #include sdkhooks
- public OnClientPutInServer(client)
- {
- SDKHook(client, SDKHook_Reload, Reload);
- }
- public OnClientDisconnect(client)
- {
- SDKUnhook(client, SDKHook_Reload, Reload);
- }
- public Action Reload(int weapon)
- {
- new iClip = GetEntProp(weapon, Prop_Send, "m_iClip1");
- if(iClip == 5)
- {
- return Plugin_Handled;
- }
- return Plugin_Continue;
- }
- stock bool bIsSurvivor(int client)
- {
- return client > 0 && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2 && !IsClientInKickQueue(client) && IsPlayerAlive(client);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement