Raised This Month: $51 Target: $400
 12% 

[DELETED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowless
Member
Join Date: May 2018
Old 05-20-2018 , 07:40   [DELETED]
Reply With Quote #1

---

Last edited by Shadowless; 05-19-2019 at 06:37.
Shadowless is offline
Send a message via ICQ to Shadowless
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 05-20-2018 , 08:10   Re: [HELP] min_spawn_money.amxx
Reply With Quote #2

Compiles fine for me.
__________________
CrAzY MaN is offline
Old 05-20-2018, 08:12
Shadowless
This message has been deleted by Shadowless.
Old 05-20-2018, 08:14
Shadowless
This message has been deleted by Shadowless.
Old 05-20-2018, 08:15
Shadowless
This message has been deleted by Shadowless.
Old 05-20-2018, 08:17
Shadowless
This message has been deleted by Shadowless.
hitD
Junior Member
Join Date: May 2017
Location: Lithuania
Old 05-20-2018 , 08:36   Re: [HELP] min_spawn_money.amxx
Reply With Quote #3

Change RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1) to RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
hitD is offline
Old 05-20-2018, 08:37
Shadowless
This message has been deleted by Shadowless.
hitD
Junior Member
Join Date: May 2017
Location: Lithuania
Old 05-20-2018 , 08:44   Re: [HELP] min_spawn_money.amxx
Reply With Quote #4

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 02:20.


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