PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
if(!is_user_connected(id))
{
return PLUGIN_HANDLED
}
new time = get_user_time(id,1);
if(time/60 > 240)
{
return PLUGIN_HANDLED
}
if(time/60 == 30)
{
cs_set_user_money(id,2000)
}
else if(time/60 == 60)
{
cs_set_user_money(id,6000)
}
else if(time/60 == 120)
{
cs_set_user_money(id,4000)
}
else if(time/60 == 180)
{
cs_set_user_money(id,3000)
}
else
{
cs_set_user_money(id,2000)
}
}
it's not working properly after playing 5 min it's giving me 4000 money