FlacoBey

Untitled

Feb 21st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include sdktools
  2. #include sdkhooks
  3.  
  4. public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon)
  5. {
  6.     int vSlot = GetPlayerWeaponSlot(client, 0);
  7.     if (!IsValidEntity(vSlot))
  8.     {
  9.         return Plugin_Continue;
  10.     }
  11.    
  12.     new iClip = GetEntProp(weapon, Prop_Send, "m_iClip1");
  13.     if(iClip == 5)
  14.     {
  15.         buttons &= ~IN_RELOAD;
  16.     }
  17.     return Plugin_Continue;
  18. }
  19.  
  20. stock bool bIsSurvivor(int client)
  21. {
  22.     return client > 0 && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2 && !IsClientInKickQueue(client) && IsPlayerAlive(client);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment