Guest User

Untitled

a guest
Apr 30th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3. #include <sdkhooks>
  4. #include <cstrike>
  5.  
  6. int round;
  7.  
  8.  
  9. public void OnPluginStart()
  10. {
  11. HookEvent("round_start", roundstart);
  12. RegConsoleCmd("sm_sprawdz", sprawdz);
  13. }
  14.  
  15. public void OnMapStart()
  16. {
  17. round = 0;
  18. }
  19.  
  20. public Action sprawdz (int client , int args)
  21. {
  22. PrintToChat(client, "Runda %d", round);
  23. }
  24.  
  25. public Action roundstart(Handle event, const char[] name, bool dontBroadcast)
  26. {
  27. if (GameRules_GetProp("m_bWarmupPeriod") == 0)
  28. {
  29. round ++;
  30. }
  31. }
  32.  
  33. public Action CS_OnBuyCommand(int client, const char[] sWeapon)
  34. {
  35. PrintToChatAll("%i %s",round,sWeapon);
  36.  
  37. // if(round == 1 || round == 16)
  38. // {
  39. if (StrEqual(sWeapon, "assaultsuit"))
  40. {
  41. PrintToChat(client, "Zablokowano Hełm");
  42. return Plugin_Handled;
  43. }
  44. // }
  45. return Plugin_Continue;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment