Code:
register_clcmd("+sshp_restore", "MB", ADMIN_LEVEL_F,"- gives an admin there 16000 money back")
register_clcmd("-sshp_restore", "MB", ADMIN_LEVEL_F,"- gives an admin there 16000 money back")
and the func
Code:
public MB(id)
{
if (!(get_user_flags(id)&ADMIN_LEVEL_F)) {
}else{
cs_set_user_money(id, 16000)
}
}
ok then it sets it once, im still holding the button i press f1
at buyzone, it uses the money but dosent get it back to 16000 untill i let go(set it to do it once more then -command shows)
now is there i way i can have the function gooing in loops on a timer or somming untill -command to stop the loop