13.05.2011, 20:18
bom vc pode usar comando para criar um veiculo fixo!
olha aew, ficaria assim! mais tem que ver qual й a sua variavel!
olha aew, ficaria assim! mais tem que ver qual й a sua variavel!
pawn Код:
if (strcmp("/sultan", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, RED, "Vocк nгo й level 2+");
return 1;
}
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(560,X,Y,Z,0.0,-1,-1,9000000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1029);
AddVehicleComponent(carid,1033);
AddVehicleComponent(carid,1139);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,0);
TogglePlayerControllable(playerid,true);
}
return 1;
}