PHP Code:
public HE_was_thrown() {
if (NadeSpawnOn == 1) {
if (GetNadeType() == 1) {
set_task(get_pcvar_float(cvar_time), "SpawnHE")
}
}
else {
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
You have to pass the id of the player in that function and the other 2 PrimaryAttack so you know who you should give the nade to.
PHP Code:
public HE_was_thrown(id) {
if (NadeSpawnOn == 1) {
if (GetNadeType() == 1) {
set_task(get_pcvar_float(cvar_time), "SpawnHE", id)
}
}
else {
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
__________________