Hello everyone, I'm once again coding for The Specialists, and in The Specialists, once a player dies he must press +attack to respawn.
Blocking IN_ATTACK works perfectly when the player is alive, but does not work at all when he is dead.
Code:
public client_PreThink(id)
{
if(!is_user_alive(id)) { // if I take away, person still can spawn but can't attack while alive
if(g_spawnblock[id] > 0) { //is always > 0
new bufferstop = entity_get_int(id,EV_INT_button)
if(bufferstop != 0) {
entity_set_int(id,EV_INT_button,bufferstop & ~IN_ATTACK & ~IN_ATTACK2 & ~IN_USE & ~IN_ALT1)
}
return PLUGIN_HANDLED;
}
}
}
Strange, anyone have a solution to preventing someone from spawning?
__________________