If you need something like Vehicle system,please search the forum.
Here is /v(ehicle) command which creates vehicle of model which you want with colors 1-2 near your position.
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define COLOR_BLUE "{00C0FF}" // We are defining color blue which we are going to use late.
CMD:v(playerid,params[])
{
new IDvehicle,color1,color2, Float:x,Float:y,Float:z;
if(sscanf(params,"iii",IDvehicle,color1,color2)) return SendClientMessage(playerid,-1,"Syntax | /v (vehicleid) (color1) (color2)");
if(IDvehicle < 400 || IDvehicle > 611) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite ID vozila izmedu [400-611]");
if(color1 < 0 || color1 > 255) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite boju(1) izmedu [0-255]");
if(color2 < 0 || color2 > 255) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite boju(2) izmedu [0-255]");
GetPlayerPos(playerid, x, y, z); // We are taking player's position.
CreateVehicle(IDvehicle, x + 3, y, z, 0, color1,color2, -1); // Here we created vehicle on player's position
SendClientMessage(playerid, -1, "{00C0FF}SERVER:{FFFFFF} You created vehicle on your position.");
return 1;
}
For this to work you will need sscanf and zcmd:
LINKS:
ZCMD -
https://sampforum.blast.hk/showthread.php?tid=91354
SSCANF2 -
https://sampforum.blast.hk/showthread.php?tid=570927
If you want to add some more colors :
www.colorpicker.com
Model of vehicles you can find here:
https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
Colors you can find here:
https://sampwiki.blast.hk/wiki/Hidden_Colour_ID%27s