Need help with the next Vehicle model and command create vehicle.
#1

שלום לכם.
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);
    
PutPlayerInVehicle(playerid,car,0);
 
SetPlayerCameraPos(playerid2116.2434,1333.9338,10.8203);
 
SetPlayerCameraLookAt(playerid2122.5068,1333.8613,10.5263);
   return 
1;
 }[/
left
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)) {
new 
numbc GetVehicleModel(GetPlayerVehicleID(playerid))-400;
      
CreateVehicle(numbc++,2122.5068,1333.8613,10.5263,0.0,1,1,20); 
   return 
1;
 }
[/
left
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.
Reply
#2

maybe take a look at http://forum.sa-mp.com/showpost.php?...1&postcount=31 ?

;Peace be with you.; Yes with you too...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)