SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 01/09/2010, 04:25 PM   #1
Yamoo
Huge Clucker
 
Yamoo's Avatar
 
Join Date: Jun 2009
Location: England, Northampton.
Posts: 401
Reputation: 26
Default [Help] Another blonde moment.

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.
__________________
Back!
Yamoo is offline  
Old 01/09/2010, 04:26 PM   #2
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 3,554
Reputation: 130
Default Re: [Help] Another blonde moment.

Code please. Don't quite get what you're asking for btw..
LarzI is offline  
Old 01/09/2010, 04:28 PM   #3
Yamoo
Huge Clucker
 
Yamoo's Avatar
 
Join Date: Jun 2009
Location: England, Northampton.
Posts: 401
Reputation: 26
Default Re: [Help] Another blonde moment.

You'll see -

pawn Code:
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.
__________________
Back!
Yamoo is offline  
Old 01/09/2010, 04:31 PM   #4
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 3,554
Reputation: 130
Default Re: [Help] Another blonde moment.

Use CreateVehicle.
LarzI is offline  
Old 01/09/2010, 04:35 PM   #5
Yamoo
Huge Clucker
 
Yamoo's Avatar
 
Join Date: Jun 2009
Location: England, Northampton.
Posts: 401
Reputation: 26
Default Re: [Help] Another blonde moment.

Quote:
Originally Posted by LarzI View Post
Use CreateVehicle.
Lol i got pwnt, i never thought of that.. Thanks.
__________________
Back!
Yamoo is offline  
Old 01/09/2010, 04:50 PM   #6
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 3,554
Reputation: 130
Default Re: [Help] Another blonde moment.

No problem :]

[This forum requires that you wait 120 seconds between posts. Please try again in 58 seconds.] ...
LarzI is offline  
Old 01/09/2010, 09:52 PM   #7
Yamoo
Huge Clucker
 
Yamoo's Avatar
 
Join Date: Jun 2009
Location: England, Northampton.
Posts: 401
Reputation: 26
Default Re: [Help] Another blonde moment.

EDIT: Never mind, sorry.
__________________
Back!

Last edited by Yamoo; 01/09/2010 at 10:09 PM.
Yamoo is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just a WTF Moment XD DaneAMattie Everything and Nothing 12 24/08/2010 12:41 PM
Timer - Help (Noob Moment) omgunoobjk Help Archive 4 25/05/2010 06:36 PM
A WTF?! Moment dja[DX] Screenshots and Videos 17 15/02/2010 03:19 PM
Saving causing lag for brief moment? [mad]MLK Help Archive 4 01/10/2009 08:48 PM
L4D - Craziest Moment Tez2k7 Everything and Nothing 5 25/01/2009 10:31 PM


All times are GMT. The time now is 07:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.