Simple teleport script..
#1

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.
Reply
#2

Views: 12
Replies: 0

Feelin the love guys.
Reply
#3

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;
}
Reply
#4

It works, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)