SA-MP Forums Archive
How to? - 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: How to? (/showthread.php?tid=198734)



How to? - Rokzlive - 13.12.2010

HOw do i make a command that gives a person a bike? Like /mtbike and it puts the player on a bike? or /dinghy and the player gets a dinghy?


Re: How to? - Kitten - 13.12.2010

pawn Код:
if (strcmp("/bike", cmdtext, true, 10) == 0)
    {
        new Float:x,Float:y,Float:z;
        new Bike1;
                GetPlayerPos(playerid, Float:x,Float:y,Float:z);
        bike1 == CreateVehicle(bike id, x,y,z,10,1,1,10);
                PutPlayerInVehicle(playerid, bike1, 0);
        return 1;
    }