14.05.2016, 02:26
Well this code first have a lot of bugs.
this is wrong you need to use this code Under OnPlayerSpawn.
Like this
if(PlayerDead[playerid] == 1 || PlayerIsDead[playerid])
PlayerIsDead[playerid] == 1 or PlayerIsDead[playerid] is same thing.
for PlayerIsDead[playerid] ==0 or !PlayerIsDead[playerid] is same thing.
any i'll advice you don't you that under OnPlayerUpdate it will lag your server.
better to use it properly on Under OnPlayerSpawn
Код:
public OnPlayerUpdate(playerid) { if(PlayerDead[playerid] == 1 && PlayerIsDead[playerid] == 0) { PlayerDeath(playerid); } }
Like this
Код:
public OnPlayerSpawn(playerid) { if(PlayerDead[playerid] == 1 && PlayerIsDead[playerid] == 0) { PlayerDeath(playerid); } }
Код:
public OnPlayerRequestClass(playerid, classid) { if(PlayerDead[playerid] == 1 || PlayerIsDead[playerid])return 1; public OnPlayerRequestSpawn(playerid) { if(LoggedIn[playerid] == 0) return 0; if(PlayerDead[playerid] == 1 || PlayerIsDead[playerid])return 1;
PlayerIsDead[playerid] == 1 or PlayerIsDead[playerid] is same thing.
for PlayerIsDead[playerid] ==0 or !PlayerIsDead[playerid] is same thing.
any i'll advice you don't you that under OnPlayerUpdate it will lag your server.
better to use it properly on Under OnPlayerSpawn