Raised This Month: $ Target: $400
 0% 

[REQ] Recive Money By Saying this server is the best


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 11-11-2015 , 10:40   [REQ] Recive Money By Saying this server is the best
Reply With Quote #1

need a plugin make the player recive 100 if he said thisserveristhebest and he can recive the money one evry 3 rounds and thnx
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-11-2015 , 13:36   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #2

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Recive 100$ if he said bestsv"
#define VERSION "1.0"
#define AUTHOR "Chihab"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say thisserveristhebest""cmdbest");
}
public 
cmdbest(id)
{
    
cs_set_user_money(id 100)
    
ChatColor(id,"!yYou Got !g100 $ !tBecause You say That Sv is The Best")
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________
Proud to be Morrocan
Chihab Eddine is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 11-11-2015 , 13:46   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #3

can you add chat print like : player killer have been recive 100 for saying .....
and : you have to wait x rounds to recive 100 again

and thnx for all
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Croxeye
Member
Join Date: Jul 2015
Old 11-12-2015 , 13:13   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #4

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Recive 100$ if he said bestsv"
#define VERSION "1.0"
#define AUTHOR "Chihab"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say thisserveristhebest""cmdbest");
}
public 
cmdbest(id)
{
    new 
sName[33]
    
get_user_name(idsName32)

    
cs_set_user_money(id 100)
    
ChatColor(id,"!yPlayer !g%s !yhave been recive !t100 $!y for saying !gThis server is the best!"sName)
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________

Last edited by Croxeye; 11-12-2015 at 13:13.
Croxeye is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-12-2015 , 13:44   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #5

Just replace the first ColorChat parameter "id" with "0" and edit the message yourself. It's not hard
redivcram is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-12-2015 , 20:54   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #6

PHP Code:

#include <amxmodx>
#include <cstrike>

new const Version[] = "0.1";

#define MAX_PLAYERS 32

const MAX_MONEY 16000;

new 
g_RoundCounterMAX_PLAYERS ];
new 
g_pCvarRounds g_pCvarMoney;

public 
plugin_init()
 {
    
register_plugin"Say Best Server Money"Version "bugsy" );
    
    
register_clcmd"say thisserveristhebest" "cmdBest" );
    
    
register_event"HLTV" "NewRound" "a" "1=0" "2=0" );
    
    
g_pCvarRounds register_cvar"sbsm_rounds" "3" );
    
g_pCvarMoney register_cvar"sbsm_money" "100" );
}

public 
client_authorizedid )
{
    
g_RoundCounterid ] = 0;
}

public 
NewRound()
{
    new 
iPlayers32 ] , iNumid;
    
    
get_playersiPlayers iNum  "ch" );
    
    for ( new 
0iNum i++ )
    {
        
id iPlayers];
        
        if ( 
g_RoundCounterid ] )
            
g_RoundCounterid ]--;
    }
}

public 
cmdBestid )
{
    new 
szName33 ] , iRounds iMoney;
    
    
iMoney get_pcvar_numg_pCvarMoney );
    
iRounds get_pcvar_numg_pCvarRounds );
    
    if ( !
g_RoundCounterid ]  )
    {
        
get_user_nameid szName charsmaxszName ) );
        
cs_set_user_moneyid clampcs_get_user_moneyid ) + iMoney  MAX_MONEY ) );
        
ChatColor,"!y%s has received !g$%d !yfor saying !gThis server is the best!" szName iMoney);
        
g_RoundCounterid ] = iRounds;
    }
    else
    {
        
ChatColorid ,"!yYou have to wait %d rounds to get !g$%d again. !yThis server is the best!" iRounds - ( iRounds g_RoundCounterid ] ) , iMoney );    
    }
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191], iSayText;
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEiSayText iSayText : (iSayText get_user_msgid("SayText") ), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________

Last edited by Bugsy; 11-12-2015 at 20:57.
Bugsy is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 11-13-2015 , 09:31   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #7

Bugsy Works Fine Thnx Very Much
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
B0oHL44L
Junior Member
Join Date: Sep 2015
Location: Morocco , Al Hucemas
Old 09-02-2016 , 10:50   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #8

Quote:
Originally Posted by Chihab Eddine View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Recive 100$ if he said bestsv"
#define VERSION "1.0"
#define AUTHOR "Chihab"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say thisserveristhebest""cmdbest");
}
public 
cmdbest(id)
{
    
cs_get_user_money(id 100)
    
ChatColor(id,"!yYou Got !g100 $ !tBecause You say That Sv is The Best")
}
stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!t""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

Change This

PHP Code:
cs_set_user_money(id 100
To

PHP Code:
cs_get_user_money(id 100
__________________
PHP Code:
public Signature(id)
{
        
Lee HwaaK Chof FiiH :3
        Ila Mal9itihch Fkar Fiih 
:3


Last edited by B0oHL44L; 09-02-2016 at 10:50. Reason: Machi Chghlak
B0oHL44L is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-02-2016 , 20:40   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #9

Quote:
Originally Posted by B0oHL44L View Post
Change This

PHP Code:
cs_set_user_money(id 100
To

PHP Code:
cs_get_user_money(id 100
What are u doing?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-02-2016 , 21:48   Re: [REQ] Recive Money By Saying this server is the best
Reply With Quote #10

Why dig up a thread that was solved/closed ~10 months ago?
__________________
Bugsy is offline
Reply



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 15:32.


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