OnPlayerDeath Problem.
#8

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
What i mean is this:

pawn Код:
new IsPlayerDead[MAX_PLAYERS];
OnPlayerDeath:

pawn Код:
IsPlayerDead[playerid] = 1;
Then, always on OnPlayerDeath:

pawn Код:
if(IsPlayerDead[playerid] == 1)
        (
    new Float:healtht;
    GetPlayerHealthEx(playerid, healtht);
    if(healtht <= 0)
    {
        GivePlayerCash(playerid, -5);
        SendClientMessage(playerid, COLOR_ORANGE, "Paramedics saved you for 5 dollars.");
        KillTimer(deatht[playerid]);
    }
        )
To avoid send the message when a player joins.
When i compile i give no errors but the .amx is empty.
Reply


Messages In This Thread
OnPlayerDeath Problem. - by Longover - 13.10.2018, 19:36
Re: OnPlayerDeath Problem. - by KinderClans - 13.10.2018, 19:42
Re: OnPlayerDeath Problem. - by BornHuman - 13.10.2018, 19:42
Re: OnPlayerDeath Problem. - by Longover - 13.10.2018, 20:41
Re: OnPlayerDeath Problem. - by Longover - 13.10.2018, 20:43
Re: OnPlayerDeath Problem. - by KinderClans - 13.10.2018, 21:32
Re: OnPlayerDeath Problem. - by Longover - 13.10.2018, 21:38
Re: OnPlayerDeath Problem. - by Longover - 13.10.2018, 21:42
Re: OnPlayerDeath Problem. - by KinderClans - 13.10.2018, 21:46
Re: OnPlayerDeath Problem. - by Longover - 13.10.2018, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)