Raised This Month: $32 Target: $400
 8% 

Small plugin for money :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s33k
Senior Member
Join Date: Jul 2009
Location: club420
Old 11-09-2015 , 16:36   Small plugin for money :)
Reply With Quote #1

Im looking for simple plugin thats give 16000 cash on round start
for players with flag k
__________________
s33k is offline
Send a message via MSN to s33k
Hartmann
Senior Member
Join Date: Nov 2014
Old 11-09-2015 , 17:00   Re: Small plugin for money :)
Reply With Quote #2

try...

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

#include <amxmodx>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("logevent_round_start"2"1=Round_Start");
}
public 
logevent_round_start()
{
    
    new 
iPlayers32 ], iNumiusr;
    
get_playersiPlayersiNum );
    for( 
0iNumi++ )
    {
        
usr iPlayers];
        if( 
get_user_flagsusr ) & ADMIN_PASSWORD )
        {
            
cs_set_user_moneyusr16000);
        }
    }

__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-10-2015 , 12:44   Re: Small plugin for money :)
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

public plugin_init( )
{
    
register_plugin"Round Money","1.0","" )
    
    
RegisterHamHam_Spawn,"player","fw_PlayerSpawn",)
}

public 
fw_PlayerSpawnid  )
{
    if( !
is_user_aliveid ) )
        return 
HAM_IGNORED;
    
    
cs_set_user_moneyid,16000,false )
    
ChatColor(id,"!yYou Got !g[16000 $]")
    
    return 
HAM_IGNORED;
}  

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
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-10-2015 , 13:44   Re: Small plugin for money :)
Reply With Quote #4

Quote:
for players with flag k
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 11-10-2015 , 16:41   Re: Small plugin for money :)
Reply With Quote #5

Hi. here you go.

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

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "On Spawn Money"
#define VERSION "1.0"
#define AUTHOR "Skumek"

#define GAMENAME "Your Game Name"
#define MONEY 16000

new g_MaxPlayers;

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
    
g_MaxPlayers get_maxplayers();
}

public 
fw_PlayerSpawn_Post(id)
{
    if(!
is_user_alive(id))
        return;
    
    if(
get_user_flags(id) & ADMIN_PASSWORD// Flag K
    
{
        
cs_set_user_money(idMONEY0)
        
client_printc(id"!g[%s]!n You Got !g%i!n Money!"GAMENAMEMONEY)
    }
}

stock client_printc(index, const text[], any:...)
{
    static 
szMsg[128]; vformat(szMsgsizeof(szMsg) - 1text3)
    
    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04")
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01")
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03")
    
    static 
g_MsgSayText; if(!g_MsgSayTextg_MsgSayText get_user_msgid("SayText")
    
    if(!
index)
    {
        for(new 
1<= g_MaxPlayersi++)
        {
            if(!
is_user_connected(i))
                continue
            
            
message_begin(MSG_ONE_UNRELIABLEg_MsgSayText_i);
            
write_byte(i);
            
write_string(szMsg);
            
message_end();    
        }        
    } 
    else 
    {
        
message_begin(MSG_ONE_UNRELIABLEg_MsgSayText_index);
        
write_byte(index);
        
write_string(szMsg);
        
message_end();
    }

__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 11-10-2015 at 16:42.
SkumTomteN is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-10-2015 , 18:14   Re: Small plugin for money :)
Reply With Quote #6

@Chihab Eddine and SkumTomteN

Quote:
Originally Posted by s33k View Post
Im looking for simple plugin thats give 16000 cash on round start
for players with flag k
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 11-14-2015 , 08:17   Re: Small plugin for money :)
Reply With Quote #7

Quote:
Originally Posted by wickedd View Post
@Chihab Eddine and SkumTomteN
Better to use in spawn. but ok.

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

#include <amxmodx>
#include <cstrike>

#define PLUGIN "On Spawn Money"
#define VERSION "1.0"
#define AUTHOR "Skumek"

#define GAMENAME "Your Game Name"
#define MONEY 16000

new g_MaxPlayers;

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("Event_RoundStart"2"1=Round_Start")
    
    
g_MaxPlayers get_maxplayers();
}

public 
Event_RoundStart(id)
{
    for(new 
1<= g_MaxPlayersi++)
    {
        if(!
is_user_connected(i) || !is_user_alive(i))
            continue;
        
        if(
get_user_flags(i) & ADMIN_PASSWORD// Flag K
        
{
            
cs_set_user_money(iMONEY0)
            
client_printc(i"!g[%s]!n You Got !g%i!n Money!"GAMENAMEMONEY)
        }
    }
}

stock client_printc(index, const text[], any:...)
{
    static 
szMsg[128]; vformat(szMsgsizeof(szMsg) - 1text3)
    
    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04")
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01")
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03")
    
    static 
g_MsgSayText; if(!g_MsgSayTextg_MsgSayText get_user_msgid("SayText")
    
    if(!
index)
    {
        for(new 
1<= g_MaxPlayersi++)
        {
            if(!
is_user_connected(i))
                continue
            
            
message_begin(MSG_ONE_UNRELIABLEg_MsgSayText_i);
            
write_byte(i);
            
write_string(szMsg);
            
message_end();    
        }        
    } 
    else 
    {
        
message_begin(MSG_ONE_UNRELIABLEg_MsgSayText_index);
        
write_byte(index);
        
write_string(szMsg);
        
message_end();
    }

__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 11-14-2015 at 08:21.
SkumTomteN is offline
s33k
Senior Member
Join Date: Jul 2009
Location: club420
Old 11-14-2015 , 15:48   Re: Small plugin for money :)
Reply With Quote #8

I use this first by Hartmann it work ok.
But it give money after freezetime left
__________________
s33k is offline
Send a message via MSN to s33k
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-14-2015 , 16:34   Re: Small plugin for money :)
Reply With Quote #9

That's what you asked for, round start is after freeze time.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
s33k
Senior Member
Join Date: Jul 2009
Location: club420
Old 11-14-2015 , 16:50   Re: Small plugin for money :)
Reply With Quote #10

Quote:
Originally Posted by wickedd View Post
That's what you asked for, round start is after freeze time.
Its ok for me. I have freezetime 1, and i have bind cfg for buying i just pres 1 key and everything is there

But if someone other looking for this same plugin
__________________
s33k is offline
Send a message via MSN to s33k
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 18:49.


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