05.01.2011, 18:46
This helped me:
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate== PLAYER_STATE_WASTED) return 1;
... your code ...
}