SA-MP Forums Archive
[Help] Another blonde moment. - 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] Another blonde moment. (/showthread.php?tid=173161)



[Help] Another blonde moment. - Yamoo - 01.09.2010

Okay, i'm creating a menu to spawn a police cruiser for LSPD.. i got everything sorted such has the menu and ectera..
But i can't seem to know where to put the selected car ID, if you'd like the code just ask please.

- Thanks in advanced.


Re: [Help] Another blonde moment. - LarzI - 01.09.2010

Code please. Don't quite get what you're asking for btw..


Re: [Help] Another blonde moment. - Yamoo - 01.09.2010

You'll see -

pawn Код:
if (CurrentMenu = lspdmenu)
    {
        switch(row)
        {
            case 0;
            {
                GetPlayerPos(playerid, plocx, plocy, plocz);
                SetVehiclePos(plo,plocx,plocy+4, plocz);
                SendClientMessage(playerid, COLOR_GREY, "An Officer has just brought a cruiser around for you, have a good patrol sir.");
    }
I don't quite know where to get a pacific car id to spawn.


Re: [Help] Another blonde moment. - LarzI - 01.09.2010

Use CreateVehicle.


Re: [Help] Another blonde moment. - Yamoo - 01.09.2010

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Use CreateVehicle.
Lol i got pwnt, i never thought of that.. Thanks.


Re: [Help] Another blonde moment. - LarzI - 01.09.2010

No problem :]

[This forum requires that you wait 120 seconds between posts. Please try again in 58 seconds.] ...


Re: [Help] Another blonde moment. - Yamoo - 01.09.2010

EDIT: Never mind, sorry.