CreateVehicle problem
#8

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);
Reply


Messages In This Thread
CreateVehicle problem - by DarkLored - 23.04.2014, 02:35
Re: CreateVehicle problem - by Mauricee - 23.04.2014, 03:32
Re: CreateVehicle problem - by Xeinss - 23.04.2014, 03:37
Re: CreateVehicle problem - by Ari - 23.04.2014, 04:11
Re: CreateVehicle problem - by Xeinss - 23.04.2014, 04:29
Re: CreateVehicle problem - by PrinceKumar - 23.04.2014, 05:00
Re: CreateVehicle problem - by DarkLored - 24.04.2014, 01:54
Re: CreateVehicle problem - by EiresJason - 24.04.2014, 02:07
Re: CreateVehicle problem - by DarkLored - 24.04.2014, 02:19
Re: CreateVehicle problem - by EiresJason - 24.04.2014, 02:46

Forum Jump:


Users browsing this thread: 1 Guest(s)