Help me with onplayerdeath
#31

try this one...i guess its not perfect but maybe it will be enough:
pawn Код:
new Float:PoX,PoY,PoZ,start=1;

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmd,"/ad",true))
    {
         SetPlayerHealth(playerid,100);
         SetPlayerPos(playerid,PoX,PoY,PoZ);
         ClearAnimations(playerid);
         return TogglePlayerControllable(playerid,1);
    }
    return 0;
}

public OnPlayerSpawn(playerid)
{
    if(first!=1)
    {
        ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
        TogglePlayerControllable(playerid,0);
                      SetPlayerHealth(playerid,99999);
        return SetPlayerPos(playerid,PoX,PoY,PoZ);
    }
     return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    first=0;
    GetPlayerPos(playerid,PoX,PoY,PoZ);
           return 1;
}
try this and tell me if this works :\
Reply


Messages In This Thread
Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:22
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:24
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:25
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:29
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:30
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:31
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:34
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:36
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:40
Re: Help me with onplayerdeath - by XePloiT - 27.11.2010, 20:41
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:41
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:42
Re: Help me with onplayerdeath - by XePloiT - 27.11.2010, 20:46
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:47
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:55
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:57
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 20:58
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 20:59
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:00
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 21:02
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:03
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 21:05
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:06
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 21:07
Re: Help me with onplayerdeath - by Auxxx - 27.11.2010, 21:09
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:09
Re: Help me with onplayerdeath - by WillyP - 27.11.2010, 21:11
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:11
Re: Help me with onplayerdeath - by Auxxx - 27.11.2010, 21:35
Re: Help me with onplayerdeath - by gangster350 - 27.11.2010, 21:50
Re: Help me with onplayerdeath - by XePloiT - 27.11.2010, 22:09
Re: Help me with onplayerdeath - by Lilcuete - 27.11.2010, 22:30
Re: Help me with onplayerdeath - by Auxxx - 28.11.2010, 10:09
Re: Help me with onplayerdeath - by gangster350 - 28.11.2010, 14:38

Forum Jump:


Users browsing this thread: 2 Guest(s)