06.06.2011, 19:17
Could someone give me a link to a topic where if a player falls into the sea they die straight away?
public OnPlayerStartSwimming( playerid ) {
SetPlayerHealth( playerid, 0.0 );
return 1;
}
public OnPlayerUpdate( playerid ) {
if( IsPlayerSwimming( playerid ) ) {
SetPlayerHealth( playerid, 0.0 );
}
return 1;
}
forward OnPlayerStartSwimming(playerid);
forward OnPlayerStopSwimming(playerid);