Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sdktools
- #include sdkhooks
- public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon)
- {
- int vSlot = GetPlayerWeaponSlot(client, 0);
- if (!IsValidEntity(vSlot))
- {
- return Plugin_Continue;
- }
- new iClip = GetEntProp(weapon, Prop_Send, "m_iClip1");
- if(iClip == 5)
- {
- buttons &= ~IN_RELOAD;
- }
- 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