24.04.2014, 02:07
Does pInfo[playerid][pCar1] store the model of the vehicle or do you want it to store the SAMP vehicle id of the players vehicle?
pawn Код:
new Float:Pos[4],col[2];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
GetPlayerFacingAngle(playerid,Pos[4]);
vehiclemodel = 560; //560 is a sultan.
col[0] = random(256); //not sure if 256 is the max colour or not, i think it is though.
col[1] = random(256);
pInfo[playerid][pCar1] = CreateVehicle(vehiclemodel,Pos[0],Pos[1],Pos[2],Pos[4],col[0],col[1],-1);

