Advertisement
FlacoBey

Untitled

Feb 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include sdktools
  2. #include sdkhooks
  3.  
  4. public OnClientPutInServer(client)
  5. {
  6.     SDKHook(client, SDKHook_Reload, Reload);
  7. }
  8.  
  9. public OnClientDisconnect(client)
  10. {
  11.     SDKUnhook(client, SDKHook_Reload, Reload);
  12. }
  13.  
  14. public Action Reload(int weapon)
  15. {
  16.     new iClip = GetEntProp(weapon, Prop_Send, "m_iClip1");
  17.     if(iClip == 5)
  18.     {
  19.         return Plugin_Handled;
  20.     }
  21.     return Plugin_Continue;
  22. }
  23.  
  24. stock bool bIsSurvivor(int client)
  25. {
  26.     return client > 0 && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2 && !IsClientInKickQueue(client) && IsPlayerAlive(client);
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement