PHP Code:
public OyuncuHiz(id){
if(is_user_alive(id) && entity_get_float(id, EV_FL_maxspeed) != 1.0) {
new para = cs_get_user_money(id)
if (para >= get_pcvar_num(cvar_doping_fiyat)){
cs_set_user_money(id, para - get_pcvar_num(cvar_doping_fiyat))
doping[id] = true
entity_set_float(id, EV_FL_maxspeed, dopinghiz)
emit_sound(id, CHAN_AUTO, dopingkullan, 1.0, ATTN_NORM, 0, PITCH_NORM)
new isim[32]
get_user_name(id, isim,31)
ColorChat(0,NORMAL,"^4[WLG]:^1 ^3DOPING:^1 ^3%s^1 Is Under DOPING!",isim)
ColorChat(id,NORMAL,"^4[WLG]:^1 ^3DOPING:^1 You have used Doping and have increased your speed!",isim)
set_task(20.0, "Hizkaldir", 1991+id)
}
else {
ColorChat(id,NORMAL,"^4[WLG]:^1 ^3DOPING:^1 Not enough money ^4to use^1 Doping. ^4Doping Price:^1 ^3%d^1 USD", get_pcvar_num(cvar_doping_fiyat))
emit_sound(id, CHAN_AUTO, upss, 1.0, ATTN_NORM, 0, PITCH_NORM)
}
}
}
public Hizkaldir(id)
{
id -= 1991
set_user_maxspeed(id, dopingsizhiz)
client_print(id,print_chat,"[WLG]: Doping effect.")
//remove_task(1991)
doping[id] = false
}
I just change
PHP Code:
set_task( 20.0 , "HizKaldir" , 1991 + id )
=>
PHP Code:
set_task(20.0, "Hizkaldir", 1991+id)
Error reason is unknow
__________________