SA-MP Forums Archive
Port Kill problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Port Kill problem (/showthread.php?tid=415265)



Port Kill problem - ZmaXy - 12.02.2013

I jumped out of the plane, and when you need to port me, kill me

code of the port:
Код:
public RegisterStep2(playerid)
{
    SetPlayerHealth(playerid, 1000);
    SetPlayerPos(playerid, 1239.8083,-815.5638,87.3438);
    return 1;
}
Video: http://www.youtube.com/watch?v=81Vgg...ature=*********


Re: Port Kill problem - Ari - 12.02.2013

I don't understand what we're trying to achieve or what is actually wrong with the script; Could you give a little bit more information about what we're trying to do and what is not working..?


Re: Port Kill problem - DaRk_RaiN - 12.02.2013

That's because you where in the air, so it detected you as if you landed, try to TogglePlayerControlable off then on before setting his pos.


Re: Port Kill problem - ZmaXy - 12.02.2013

When i port, i die, but don't need to die. See the video

EDIT:
DaRk_RaiN, i tried TogglePlayerControllable(playerid,0);, but doesn't work


Re: Port Kill problem - ZmaXy - 12.02.2013

Someone help? (Sry for DP)