SA-MP Forums

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

Thread Tools Display Modes
Old 23/03/2011, 04:02 PM   #1
Little Clucker
Join Date: Mar 2011
Posts: 4
Reputation: 0
Default Need help with the next Vehicle model and command create vehicle.

שלום לכם.
Hello everyone.
I started to do new mode and nice, and i dont know what to do with something.
I want to create command that she will create vehicle while the Camera look at the vehicle, i dont have some problem with that.
but, i want to do command that ill do /car and its will change the model id to the next id.
like the Standalker is ID 400, i want to do /car and its will display the vehicle id 401, that after this its will destroy the previous model id.

That my first command, dont have problem at this:
PHP Code:
if(!strcmp(cmd"/create"true)) { 
PHP Code:

[left]    new car;

car CreateVehicle(400,2122.5068,1333.8613,10.5263,0.0,1,1,20);






And this to move to the next id, in this situation its need to move to model id 401:

PHP Code:

[left]if(!strcmp(cmd"/car"true)) {

numbc GetVehicleModel(GetPlayerVehicleID(playerid))-400;




But its not move to the next model id(this command isnt work), and i need to destroy the previous id and i dont know how.

Please help me.
Good day.
Newer is offline  
Old 23/03/2011, 09:13 PM   #2
Join Date: Jun 2009
Posts: 1,848
Reputation: 1370
Default Re: Need help with the next Vehicle model and command create vehicle.

maybe take a look at ?

;Peace be with you.; Yes with you too...
Gamer_Z 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
Vehicle model limit Hal Help Archive 6 21/12/2010 06:34 AM
Vehicle model bug? -8oHd4N- Help Archive 4 29/10/2009 06:58 PM
[Solved] Vehicle Model => Vehicle ID SiJ Help Archive 3 28/10/2009 08:44 AM
How to convert the vehicle lists to Create vehicle for each line Gabe713 Help Archive 1 05/10/2009 04:12 PM
[?]Getting Vehicle id NOT model dafel2 Help Archive 3 12/04/2009 07:57 AM

All times are GMT. The time now is 06:50 PM.

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