11.07.2014, 20:37
pawn Код:
stock Cars(playerid, model, color1, color2)
{
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); GetPlayerFacingAngle(playerid, Pos[3]);
if(GetPVarInt(playerid,"VipCar") != -1) DestroyVehicle(GetPVarInt(playerid,"VipCar"));
new vehicleid = CreateVehicle(model,Pos[0],Pos[1],Pos[2], Pos[3],color1, color2, 3600);
SetPVarInt(playerid,"VipCar", vehicleid);
SCM(playerid,-1,"Vehicle spawned!");
}
pawn Код:
#define MAX_CARS 1000//ur cars