Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <modularjail>
- #include <colors_csgo>
- #define PRG_CHAT_PREFIX "{grey}[ {orange}PRG {grey}] {default}"
- int g_iaTimes[MAXPLAYERS];r
- int g_iCooldownTime = 30;
- public Plugin myinfo =
- {
- name = "FreeKill",
- author = "Wicked",
- description = "When someone thinks there freekilled it goes to chat if they do !freekill",
- version = "0.5",
- url = ""
- };
- public void OnPluginStart()
- {
- RegConsoleCmd("sm_freekill", Command_freekill, "If they think they are freekilled it is said in chat");
- }
- public Action Command_freekill(client, args)
- {
- if(GetTime() - g_iaTimes[client] < int g_iCooldownTime = 30;) {
- g_iaTimes[client] = GetTime();
- } else
- PrintToChat(client, PRG_CHAT_PREFIX ... "You're on cooldown!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement