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

Money more than 16000


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-29-2020 , 08:05   Re: Money more than 16000
Reply With Quote #11

Wait 14 days before bumping your thread.
Basic rule please follow.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-29-2020 , 08:26   Re: Money more than 16000
Reply With Quote #12

Quote:
Originally Posted by Natsheh View Post
Wait 14 days before bumping your thread.
Basic rule please follow.
offtopic?
HowToRuski is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-29-2020 , 12:46   Re: Money more than 16000
Reply With Quote #13

You need to post the full code otherwise there's nothing we can do, you'll have to figure it out your own
If you are not experienced enough to solve the problem you should probably ask in suggestion/requests
__________________









Last edited by CrazY.; 11-29-2020 at 12:50.
CrazY. is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-29-2020 , 13:21   Re: Money more than 16000
Reply With Quote #14

Quote:
Originally Posted by CrazY. View Post
You need to post the full code otherwise there's nothing we can do, you'll have to figure it out your own
If you are not experienced enough to solve the problem you should probably ask in suggestion/requests
Here is the full code :
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN  "[VIP] Money Start"
#define VERSION "0.1"
#define AUTHOR  "Celena Luna"

new g_FirstRoundg_iLastRoundMoney[33]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_event("TextMsg""Event_TextMsg_Restart""a""2&#Game_C""2&#Game_w");
    
register_logevent("logevent_round_end"2"1=Round_End"

    
RegisterHam(Ham_Spawn"player""fw_Player_Spawn_Post"1)
    
g_FirstRound 1
}

public 
Event_TextMsg_Restart()
{
    
g_FirstRound 1
}

public 
logevent_round_end()
{
    
g_FirstRound 0

    
new iPlayers[32] , iNum Player;
    
get_playersiPlayers iNum "h" );
    
    for ( new 
iNum i++ )
    {    
        
Player iPlayers[i];
        
g_iLastRoundMoney[Player] = cs_get_user_money(Player
    }
}

public 
fw_Player_Spawn_Post(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
        
set_task(0.1"SetMoney"id//Set bit delay to replace the default bonus Win/Lose
}

public 
SetMoney(id)
{

    new 
money cs_get_user_money(id)

    if(
g_FirstRound == 1)
        
cs_set_user_money(id1000//For the first round
    
else 
        
cs_set_user_money(idg_iLastRoundMoney[id]+3000//Second round onward
    
    
cs_set_user_money(idmin(16000money))

HowToRuski is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-29-2020 , 13:26   Re: Money more than 16000
Reply With Quote #15

Quote:
Originally Posted by CrazY. View Post
Code:
public SetMoney(id) {     new money = cs_get_user_money(id)     if(g_FirstRound == 1)         money = 1000 //For the first round     else         money = g_iLastRoundMoney[id]+3000 //Second round onward     cs_set_user_money(id, min(16000, money)) }
__________________








CrazY. is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-29-2020 , 13:53   Re: Money more than 16000
Reply With Quote #16

what? as i said it doesnt give money then . it removes the 3000 and 1k given by plugin
HowToRuski is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-29-2020 , 18:52   Re: Money more than 16000
Reply With Quote #17

You shut the fuck up.
__________________








CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-29-2020 , 19:50   Re: Money more than 16000
Reply With Quote #18

Crazy there is no need to be disrespectful.


Here you go replace it.

PHP Code:
public SetMoney(id)
{


    if(
g_FirstRound == 1)
        
cs_set_user_money(id1000//For the first round
    
else 
        
cs_set_user_money(idmin(g_iLastRoundMoney[id]+3000,16000)) //Second round onward
    

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-30-2020 at 18:17.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-29-2020 , 22:58   Re: Money more than 16000
Reply With Quote #19

CrazY., nobody is forcing you to help, if you don't want to then don't. Keep in mind that there's a mixture of experience levels on the forum, in addition to a language barrier in some cases. While I know it can be frustrating at times, please keep the language clean and be respectful.
__________________
Bugsy is offline
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 11-30-2020 , 14:09   Re: Money more than 16000
Reply With Quote #20

Quote:
Originally Posted by Natsheh View Post
Crazy there is no need to be disrespectful.


Here you go replace it.

PHP Code:
public SetMoney(id)
{

    new 
money cs_get_user_money(id)

    if(
g_FirstRound == 1)
        
cs_set_user_money(id1000//For the first round
    
else 
        
cs_set_user_money(idmin(g_iLastRoundMoney[id]+3000,16000)) //Second round onward
    

thanks for your support, worked perfectly fine. ;)
HowToRuski 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 19:37.


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