Quote:
Originally Posted by .:: ZeX ::.
pawn Код:
#define KillPlayer(%1) if(IsPlayerConnected(%1)) SetPlayerHealth(%1,0.0000) #define HealPlayer(%1) if(IsPlayerConnected(%1)) SetPlayerHealth(%1,100.0000)
|
I think there is no need to check the connection as it woudln't crash your server if the player isn't connected as it has built-in checking AFAIK.
Quote:
Originally Posted by Luka™
Quote:
Originally Posted by 0rb
Quote:
Originally Posted by Luka™
SetPlayerHealth doesn't work with float in 0.3, but with integer
|
Don't give false informations.
|
First try code then post a message
|
Quote:
Originally Posted by a_players.inc
native SetPlayerHealth(playerid, Float:health);
|