Need help with the next Vehicle model and command create vehicle. - 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: Need help with the next Vehicle model and command create vehicle. (
/showthread.php?tid=243542)
Need help with the next Vehicle model and command create vehicle. -
Newer - 23.03.2011
שלום לכם.
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(playerid, 2116.2434,1333.9338,10.8203);
SetPlayerCameraLookAt(playerid, 2122.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.
Re: Need help with the next Vehicle model and command create vehicle. -
Gamer_Z - 23.03.2011
maybe take a look at
http://forum.sa-mp.com/showpost.php?...1&postcount=31 ?
;Peace be with you.; Yes with you too...