Code:
stock func_money( id, cost, const command[] )
{
new money = cs_get_user_money(id);
if( money < cost )
{
NoMoney(id)
return PLUGIN_HANDLED;
}
if( equal(command, "SetGod" ) // example: func_money( id, 200, "SetGod" )
{
set_user_godmode( id, 1 ) // execute command here
}
if( equal(command, "SetGlow" ) // example: func_money( id, 250, "SetGlow" )
{
SetGlow( id, 1 ) // Execute Set Glow Here.
}
cs_set_user_money( id, money - cost )
return PLUGIN_HANDLED;
}
you can add as many commands in this stock how ever many commands or items you require.
and the command is getting executed in a if().
i dont understand what your last post was trying to say...
__________________