SA-MP Forums Archive
Help with creatng something. - 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: Help with creatng something. (/showthread.php?tid=232956)



Help with creatng something. - iGetty - 28.02.2011

I am wondering, how do I create a tollbooth, with it say, you're on the tollbooth, and to get through it, you type /paytoll, but it don't open, you go straight over to the other side of the tollbooth?

EG.

Red County RP used to have it:

An I icon is placed, and when you drive over the top, it says use /paytoll to get to the other side.

And when you /paytoll you TP to the other side of the toll..?

If that made sense.

Thankyou.


Re: Help with creatng something. - austin070 - 28.02.2011

pawn Код:
if(strcmp(cmd, "/paytoll", true)== 0)
    {
        SetPlayerPos(playerid, x, y, z);
        return 1;
    }
Simple as that to tp a player. You can get more advanced like IsPlayerInRangeOfPoint to make it so they can only do it if they are in range. But you have to replace x, y, z with the coords you want to tp the player to.


Re: Help with creatng something. - Steven82 - 01.03.2011

But your also going to have to use "SetVehiclePos" and stuff like that. And of course create the map for the tollbooth.