Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3. #include <modularjail>
  4. #include <colors_csgo>
  5.  
  6. #define PRG_CHAT_PREFIX "{grey}[ {orange}PRG {grey}] {default}"
  7.  
  8. int g_iaTimes[MAXPLAYERS];r
  9. int g_iCooldownTime = 30;
  10. public Plugin myinfo =
  11. {
  12. name = "FreeKill",
  13. author = "Wicked",
  14. description = "When someone thinks there freekilled it goes to chat if they do !freekill",
  15. version = "0.5",
  16. url = ""
  17. };
  18.  
  19. public void OnPluginStart()
  20. {
  21. RegConsoleCmd("sm_freekill", Command_freekill, "If they think they are freekilled it is said in chat");
  22. }
  23.  
  24. public Action Command_freekill(client, args)
  25. {
  26. if(GetTime() - g_iaTimes[client] < int g_iCooldownTime = 30;) {
  27.  
  28. g_iaTimes[client] = GetTime();
  29.  
  30. } else
  31.  
  32. PrintToChat(client, PRG_CHAT_PREFIX ... "You're on cooldown!");
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement