[Forwards][Cstrike] [Round]StartMoney
Posted: Mon Sep 28, 2026 1:09 pm
client_startmoney and client_roundstartmoney forwards
.: Description :.
The plugin offers 2 forwards that allow you to hook startmoney (when enter the server or after a restart) and roundstartmoney (money set at new round right before the player spawn, after the round money bonus has been given).
.: Forwards :.
client_startmoney < player index > < start money amount >
client_roundstartmoney < player index > < roundstart money amount >
Returns : positive value if you want to change it, negative value to ignore
.: Notes :.
When a sv_restart or sv_restartround is made, both forwards will be sent, i've took the decision to let the startmoney one because, for example, you may want to give advantages to admins only for the startmoney.
.: Plugin Example :.
.: Description :.
The plugin offers 2 forwards that allow you to hook startmoney (when enter the server or after a restart) and roundstartmoney (money set at new round right before the player spawn, after the round money bonus has been given).
.: Forwards :.
client_startmoney < player index > < start money amount >
client_roundstartmoney < player index > < roundstart money amount >
Returns : positive value if you want to change it, negative value to ignore
.: Notes :.
When a sv_restart or sv_restartround is made, both forwards will be sent, i've took the decision to let the startmoney one because, for example, you may want to give advantages to admins only for the startmoney.
.: Plugin Example :.
Code: Select all
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define VERSION "0.0.1"
#define PLUGIN ""
forward client_roundstartmoney(id, money)
forward client_startmoney(id, money)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
}
public client_startmoney( id, money )
{
if( is_user_admin(id) )
{
return 10000
}
return -1
}
public client_roundstartmoney( id, money )
{
switch( cs_get_user_team(id) )
{
case CS_TEAM_T:
{
if( money < 3000 )
{
return 3000
}
}
case CS_TEAM_CT:
{
if( money < 3600 )
{
return 3600
}
}
}
return -1
}