CHEATS GUIs SCRIPTS MAPS TUTORIALS SOUNDS EFFECTS TOOLS SERVERS SKINS TEXTURES MODELS PLUGINS MODS
 
 GVME > CSGO > Downloads > Plugins
Remove ads!
Rating
Based on GVME Community!
Rating:


Your rating: N/A
Total votes: 0

You cannot rating yet!
You can rate anything - when you add rating to a submission your vote determines its success or failure.

To vote on this submission
register or login

You cannot add to Favorites!
Total Favorites

You cannot say thanks!
You must register or login

Statistics
Scores and popularity
Views: 484
Downloads: 193
Feedback: 0

Coinflip

Share: F F F F F F F
Coinflip
  Added by: Diablo
Author(s):
KennYSwe
  Category: Counter-Strike: Global Offensive > Plugins Type: General Purpose
  Tags: coin flip
This is a coinflip plugin!
You type !coinflip in the chat and the coin will flip and either land on terrorist or counter terrorist.
It's 50/50% chance.

I also made one for Eccas Warden plugin, so only the warden can flip the coin.

Everything is translatable, so you can edit it however you want it.

Put the .smx file in plugins and .txt file in translations

Commands: !coinflip

CODE
public OnPluginStart()
{
    RegConsoleCmd("sm_coinflip", OnFlip, "Flip the coin");
    LoadTranslations("warden-coinflip.phrases")
}

public Action:OnFlip(client, args)
{
    if (warden_iswarden(client) == CanUseCommand)
    
      switch(GetRandomInt(1, 2))
    {
        case 1:
        {
            CPrintToChatAll("%t %t", "MSG_PREFIX", "Terrorist");
        }
        case 2:
        {
            CPrintToChatAll("%t %t", "MSG_PREFIX", "Counter Terrorist");
        }
    }
    else  
    {
        CPrintToChat(client, "%t %t", "MSG_PREFIX", "Only Warden");  
    }    
    return Plugin_Handled;
}
  Added: Dec 13 2020, 12:13 PM    Modified: Never edited!    Thanks List: [+]      
Add Feedback

You cannot post yet!
Get involved on GVME by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login
Feedback