Raised This Month: $114 Target: $400
 28% 

How can i get random word on plugin


Post New Thread Reply   
 
Thread Tools Display Modes
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 01-31-2017 , 15:47   Re: How can i get random word on plugin
Reply With Quote #21

Thanks. Sorry.
__________________
vortex. is offline
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 01-31-2017 , 18:05   Re: How can i get random word on plugin
Reply With Quote #22

i dunno understand when peoples post something from my country after fight begin.
kids fight for code thats so funny peoples decompiled my plugins and sold my plugins to peoples i didnt told anything about it cuz i dont wanna fight with kids they dunno know what they doing.

i wish u understand cuz i have really bad english lel sorry about that.

u looking for this ?

Code:
#include <sourcemod>

#include <sdktools>
#include <sdkhooks>
#include <cstrike>
bool:tsustum = false;
bool:tsustum2 = false;
bool:tsustum3 = false;
bool:tsustum4 = false;
bool:tsustum5 = false;

public Plugin:myinfo = 
{
 name = "TSustum Plugini | Mithat Guner",
 author = "Mithat Guner",
 description = "T Sustum | Mithat Guner",
 version = "1.0",
 url = "www.pluginler.com"
}
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
//PLUGINLER.COM
public OnPluginStart()
{
 RegAdminCmd("sm_tsustum", TSUSTUM, ADMFLAG_GENERIC);
 AddCommandListener(OnSayText, "say");
 AddCommandListener(OnSayText, "say_team");
}
 
public Action:TSUSTUM(int client, args)
{
 new suerte = GetRandomInt(1, 5); // Rastgele INTEGER CEK
    switch (suerte)
    {
     case 1:
     {
      PrintCenterTextAll("<font size='19' color='#00CCFF'> TSUSTUM:</font>: Tsustum dedikten sonra dediğimi ilk yazan koruma olur");
      PrintToChatAll("{blue}TSUSTUM: {green}Tsustum dedikten sonra dediğimi ilk yazan koruma olur");
   tsustum = true;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
     }
     case 2:
     {
      PrintCenterTextAll("<font size='19' color='#00CCFF'> TSUSTUM:</font>: Mithat Güner");
      PrintToChatAll("{blue}TSUSTUM: {green}Mithat Güner");
      PrintToChatAll("{blue}TSUSTUM: {green}Mithat Güner");
      PrintToChatAll("{blue}TSUSTUM: {green}Mithat Güner");
      PrintToChatAll("{blue}TSUSTUM: {green}Mithat Güner");
      PrintToChatAll("{blue}TSUSTUM: {green}Mithat Güner");
   tsustum = false;
   tsustum2 = true;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
     }
     case 3:
     {
      PrintCenterTextAll("<font size='19' color='#00CCFF'> TSUSTUM:</font>: Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
      PrintToChatAll("{blue}TSUSTUM: {green}Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
      PrintToChatAll("{blue}TSUSTUM: {green}Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
      PrintToChatAll("{blue}TSUSTUM: {green}Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
      PrintToChatAll("{blue}TSUSTUM: {green}Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
      PrintToChatAll("{blue}TSUSTUM: {green}Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş");
   tsustum = false;
   tsustum2 = false;
   tsustum3 = true;
   tsustum4 = false;
   tsustum5 = false;
     }
     case 4:
     {
      PrintCenterTextAll("<font size='19' color='#00CCFF'> TSUSTUM:</font>: Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
      PrintToChatAll("{blue}TSUSTUM: {green}Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
      PrintToChatAll("{blue}TSUSTUM: {green}Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
      PrintToChatAll("{blue}TSUSTUM: {green}Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
      PrintToChatAll("{blue}TSUSTUM: {green}Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
      PrintToChatAll("{blue}TSUSTUM: {green}Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç");
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = true;
   tsustum5 = false;
     }
     case 5:
     {
      PrintCenterTextAll("<font size='19' color='#00CCFF'> TSUSTUM:</font>: Pluginler.com");
      PrintToChatAll("{blue}TSUSTUM: {green}Pluginler.com");
      PrintToChatAll("{blue}TSUSTUM: {green}Pluginler.com");
      PrintToChatAll("{blue}TSUSTUM: {green}Pluginler.com");
      PrintToChatAll("{blue}TSUSTUM: {green}Pluginler.com");
      PrintToChatAll("{blue}TSUSTUM: {green}Pluginler.com");
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = true;
     }
    }
}
public Action:OnSayText(client, const String:command[], argc)
{ 
 if(tsustum)
 {
  decl String:mesaj[256];
  decl String:kelime[64][256];
  GetCmdArgString(mesaj,sizeof(mesaj));
  StripQuotes(mesaj); 
  ExplodeString(mesaj, " ", kelime, sizeof(kelime), sizeof(kelime[]));
  
  if (StrContains(kelime[0], "Tsustum dedikten sonra dediğimi ilk yazan koruma olur", false) == 0)
  {
   PrintToChatAll("{darkred}[ Pluginler.com ] {green}%N {red}isimli oyuncu kelimeyi doğru şekilde ilk yazarak Gardiyan takimina geçti.", client);
   if(GetClientTeam(client) == 2)
   {
    new team = GetClientTeam(client);
    
    if(team != CS_TEAM_CT)
    {
     ChangeClientTeam(client, CS_TEAM_CT);
    }
   }
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
   return Plugin_Stop;
  }
  return Plugin_Stop;
 }
 else if(tsustum2)
 {
  decl String:mesaj[256];
  decl String:kelime[64][256];
  GetCmdArgString(mesaj,sizeof(mesaj));
  StripQuotes(mesaj); 
  ExplodeString(mesaj, " ", kelime, sizeof(kelime), sizeof(kelime[]));
  
  if (StrContains(kelime[0], "Mithat Güner", false) == 0)
  {
   PrintToChatAll("{darkred}[ Pluginler.com ] {green}%N {red}isimli oyuncu kelimeyi doğru şekilde ilk yazarak Gardiyan takimina geçti.", client);
   if(GetClientTeam(client) == 2)
   {
    new team = GetClientTeam(client);
    
    if(team != CS_TEAM_CT)
    {
     ChangeClientTeam(client, CS_TEAM_CT);
    }
   }
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
   return Plugin_Stop;
  }
  return Plugin_Stop;
 }
 else if(tsustum3)
 {
  decl String:mesaj[256];
  decl String:kelime[64][256];
  GetCmdArgString(mesaj,sizeof(mesaj));
  StripQuotes(mesaj); 
  ExplodeString(mesaj, " ", kelime, sizeof(kelime), sizeof(kelime[]));
  
  if (StrContains(kelime[0], "Bir Berber Bir Berbere Gel Beraber Bir Berber Dükkanı Açalım Demiş", false) == 0)
  {
   PrintToChatAll("{darkred}[ Pluginler.com ] {green}%N {red}isimli oyuncu kelimeyi doğru şekilde ilk yazarak Gardiyan takimina geçti.", client);
   if(GetClientTeam(client) == 2)
   {
    new team = GetClientTeam(client);
    
    if(team != CS_TEAM_CT)
    {
     ChangeClientTeam(client, CS_TEAM_CT);
    }
   }
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
   return Plugin_Stop;
  }
  return Plugin_Stop;
 }
 else if(tsustum4)
 {
  decl String:mesaj[256];
  decl String:kelime[64][256];
  GetCmdArgString(mesaj,sizeof(mesaj));
  StripQuotes(mesaj); 
  ExplodeString(mesaj, " ", kelime, sizeof(kelime), sizeof(kelime[]));
  
  if (StrContains(kelime[0], "Kırmızı Arabanın Yanındaki Dev Maymunun Solundaki Pembe Ağaç", false) == 0)
  {
   PrintToChatAll("{darkred}[ Pluginler.com ] {green}%N {red}isimli oyuncu kelimeyi doğru şekilde ilk yazarak Gardiyan takimina geçti.", client);
   if(GetClientTeam(client) == 2)
   {
    new team = GetClientTeam(client);
    
    if(team != CS_TEAM_CT)
    {
     ChangeClientTeam(client, CS_TEAM_CT);
    }
   }
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
   return Plugin_Stop;
  }
  return Plugin_Stop;
 }
 else if(tsustum5)
 {
  decl String:mesaj[256];
  decl String:kelime[64][256];
  GetCmdArgString(mesaj,sizeof(mesaj));
  StripQuotes(mesaj); 
  ExplodeString(mesaj, " ", kelime, sizeof(kelime), sizeof(kelime[]));
  
  if (StrContains(kelime[0], "Pluginler.com", false) == 0)
  {
   PrintToChatAll("{darkred}[ Pluginler.com ] {green}%N {red}isimli oyuncu kelimeyi doğru şekilde ilk yazarak Gardiyan takimina geçti.", client);
   if(GetClientTeam(client) == 2)
   {
    new team = GetClientTeam(client);
    
    if(team != CS_TEAM_CT)
    {
     ChangeClientTeam(client, CS_TEAM_CT);
    }
   }
   tsustum = false;
   tsustum2 = false;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
   return Plugin_Stop;
  }
  return Plugin_Stop;
 }
 return Plugin_Continue;
}

Last edited by MithatGuner; 01-31-2017 at 18:16. Reason: EDIT
MithatGuner is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 02-01-2017 , 09:01   Re: How can i get random word on plugin
Reply With Quote #23

Oh man...
PHP Code:
AddCommandListener(OnSayText"say");
AddCommandListener(OnSayText"say_team"); 
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
ESK0
Veteran Member
Join Date: May 2014
Location: Czech Republic
Old 02-01-2017 , 15:22   Re: How can i get random word on plugin
Reply With Quote #24

Oh man
Code:
tsustum = false;
   tsustum2 = true;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
__________________

Last edited by ESK0; 02-01-2017 at 15:23.
ESK0 is offline
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 02-01-2017 , 16:56   Re: How can i get random word on plugin
Reply With Quote #25

Quote:
Originally Posted by ESK0 View Post
Oh man
Code:
tsustum = false;
   tsustum2 = true;
   tsustum3 = false;
   tsustum4 = false;
   tsustum5 = false;
Yes, any problem ?
MithatGuner is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 02-01-2017 , 17:12   Re: How can i get random word on plugin
Reply With Quote #26

You can do "get random word". Because this easy way. If you want "get random word version", add me on Steam.
__________________

Last edited by vortex.; 02-01-2017 at 17:24.
vortex. is offline
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 02-01-2017 , 18:12   Re: How can i get random word on plugin
Reply With Quote #27

Quote:
Originally Posted by vortex. View Post
You can do "get random word". Because this easy way. If you want "get random word version", add me on Steam.
Nope i dunno need it, its more easier for me kk.
MithatGuner is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 02-01-2017 , 18:21   Re: How can i get random word on plugin
Reply With Quote #28

You know, good luck
__________________
vortex. is offline
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 02-01-2017 , 18:23   Re: How can i get random word on plugin
Reply With Quote #29

Quote:
Originally Posted by vortex. View Post
You know, good luck
Thx, u too good luck
MithatGuner is offline
ESK0
Veteran Member
Join Date: May 2014
Location: Czech Republic
Old 02-02-2017 , 05:48   Re: How can i get random word on plugin
Reply With Quote #30

Quote:
Originally Posted by MithatGuner View Post
Yes, any problem ?
Its hardcoded as :poop:
__________________
ESK0 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:45.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode