AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [DELETED] (https://forums.alliedmods.net/showthread.php?t=307648)

Shadowless 05-20-2018 07:40

[DELETED]
 
---

CrAzY MaN 05-20-2018 08:10

Re: [HELP] min_spawn_money.amxx
 
Compiles fine for me.

hitD 05-20-2018 08:36

Re: [HELP] min_spawn_money.amxx
 
Change RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1) to RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)

hitD 05-20-2018 08:44

Re: [HELP] min_spawn_money.amxx
 
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


All times are GMT -4. The time now is 04:34.

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