Small command error.
#8

Doesn't work, here check my code :
When the player dies it freezes him and when he does the command it releases him, and afterwards the death animation is plaid, can anyone help me fix so that when the player dies it will go on
"flip animation" and freeze him, and when he uses the command it will thaw him and spawn him at a certain point.
Here is my command :
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
TogglePlayerControllable(playerid0);
pdeath[playerid] = 1;
SendClientMessage(playerid0xFF4646FF"bbbbbdfgdfgdfg !");
SetPlayerPos(playerid,1583.4307,-1634.7228,13.3905);
return 
1;

PHP код:
 if (strcmp(cmdtext"/acceptdeath"true) == 0)
    {
 if(
pdeath[playerid] == 0) return SendClientMessage(playerid0xFF4646FF"You are not dead.");
GivePlayerMoney(playerid, -500);
pdeath[playerid] = 0;
TogglePlayerControllable(playerid1);
    return 
1;

Reply


Messages In This Thread
Small command error. - by Scriptissue - 29.09.2010, 09:20
Re: Small command error. - by Calgon - 29.09.2010, 09:29
Re: Small command error. - by Scriptissue - 29.09.2010, 10:26
Re: Small command error. - by [XST]O_x - 29.09.2010, 10:35
Re: Small command error. - by Scriptissue - 29.09.2010, 11:14
Re: Small command error. - by Scriptissue - 29.09.2010, 11:39
Re: Small command error. - by HyperZ - 29.09.2010, 11:50
Re: Small command error. - by Scriptissue - 29.09.2010, 12:36
Re: Small command error. - by rbN. - 29.09.2010, 12:40
Re: Small command error. - by Scriptissue - 29.09.2010, 12:50

Forum Jump:


Users browsing this thread: 2 Guest(s)