RSSy MYGO.pl Opublikowano Grudzień 19, 2016 o 23:10 RSSy Udostępnij Opublikowano Grudzień 19, 2016 o 23:10 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 PHP 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; } This is one of my first plugins, so give criticism.:) Attached Files Warden-coinflip.smx (13.7 KB) Get Plugin or Get Source (Warden-coinflip.sp - 1,019 Bytes) warden-coinflip.phrases.txt (413 Bytes) Coinflip.smx (13.1 KB) Get Plugin or Get Source (Coinflip.sp - 789 Bytes) Coinflip.phrases.txt (285 Bytes) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się