08.11.2010, 19:34
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
Everything complies good..
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;
}

