SA-MP Forums Archive
Car Ramming help me - 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: Car Ramming help me (/showthread.php?tid=447791)



Car Ramming help me - ScRipTeRi - 01.07.2013

hello guys,
when player is down of car like this
set player pos up of car can do this?
Thnx


Re: Car Ramming help me - park4bmx - 01.07.2013

Maybe
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(weaponid == 49) {
          new Float:pPosX,Float:pPosY,Float:pPosZ;
          GetPlayerPos(issuerid, pPosX,pPosY,pPosZ);
          SetPlayerPos(playerid,pPosX,pPosY,pPosZ+0.3);
    }
}