Acceptdeath problem onplayerupdate
#1

I got this problem with onplayerupdate
This is my onplayerupdate:
http://pastebin.com/JBB0T5TJ

Now I want that when people are below 5 or hp 5 /crack and toggleplayer 0.

I used the isplayertied for it but the player doesn't /crack when he / she is below 5 hp..

Can anyone help me?

This is my /acceptdeath
Код:
    if(strcmp(cmd, "/acceptdeath", true) == 0)
    {
        if(PlayerTied[giveplayerid] == 1)
        {
             if(PlayerTied[giveplayerid] == 1)
            {
                PlayerTied[giveplayerid] = 0;
                SetPlayerHealth(playerid, 0.0);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, "   You ain't wounded !");
                return 1;
            }
        }
        return 1;
    }
Everything complies good..
Reply
#2

onplayerupdate u got
Код:
PlayerTied[giveplayerid] = 1;
replace it with
Код:
PlayerTied[playerid] = 1;
Reply
#3

Thanks, but still it doesn't toggle the player?
Reply
#4

Fixed it I needed to put if(health < 10) incase of if(health == 10.0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)