Raised This Month: $ Target: $400
 0% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hitD
Junior Member
Join Date: May 2017
Location: Lithuania
Old 05-20-2018 , 08:44   Re: [HELP] min_spawn_money.amxx
Reply With Quote #1

What u did it's not wrong u only mentioned bad function(it should be functioned that u mentioned in code)
HTML Code:
/*	
;//Formatright © 2009, ConnorMcLeod
*/

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

#define VERSION "0.4.0"

new g_pCvarStartMoney

public plugin_init()
{
	register_plugin("Min Spawn Money", VERSION, "ConnorMcLeod")

	RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
	g_pCvarStartMoney = get_cvar_pointer("mp_startmoney")
}

public Player_Spawn(id)
{
	if( is_user_alive(id) )
	{
		static iStartMoney
		if( cs_get_user_money(id) < (iStartMoney = get_pcvar_num(g_pCvarStartMoney)) )
		{
			cs_set_user_money(id, iStartMoney, 1)
		}
	}
}
Like i mentioned before replace all yours to this or replace only one line. And try it again
hitD is offline
Old 05-20-2018, 08:46
Shadowless
This message has been deleted by Shadowless.
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 04:34.


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