SA-MP Forums Archive
Simple teleport script.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Simple teleport script.. (/showthread.php?tid=274590)



Simple teleport script.. - Jmarr - 06.08.2011

It's finally happened folks..my brain is now mush..

I completely forget how to make a script where, when a player hits the spacebar they teleport 10 feet, that's it, that's all I want but I forget what to do.

Thank you,

Jmarr.


Re: Simple teleport script.. - Jmarr - 06.08.2011

Views: 12
Replies: 0

Feelin the love guys.


Re: Simple teleport script.. - MadeMan - 06.08.2011

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_JUMP)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z+10);
    }
    return 1;
}



Re: Simple teleport script.. - Jmarr - 06.08.2011

It works, thanks.