public OnGameModeInit() { AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0,0,0,0,0) return 1; }
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0);
(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2)
public OnGameModeInit()
{
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0);
return 1;
}
Код:
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0) https://sampwiki.blast.hk/wiki/AddStaticVehicle |
AddPlayerClass(0,2039.6019,1310.0482,10.6719,181.0950,0,0,0,0,0,0);
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0); //
public OnGameModeInit() { AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0); return 1; }
Yea i know but when u do a player class its
Код:
AddPlayerClass(0,2039.6019,1310.0482,10.6719,181.0950,0,0,0,0,0,0); ![]() Код:
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0); // |
Код:
AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0); https://sampwiki.blast.hk/wiki/AddStaticVehicle |
Yes, because AddPlayerClass & AddStaticVehicle have different Parameters
https://sampwiki.blast.hk/wiki/AddPlayerClass https://sampwiki.blast.hk/wiki/AddStaticVehicle But when you're ingame and type /save in a vehicle it should provide the exact parameters for AddStaticVehicle. |
public OnGameModeInit() { AddStaticVehicle(451,2039.6019,1310.0482,10.6719,181.0950,0,0); return 1; }
public OnGameModeInit() { // Add a Hydra (520) to the game with a respawn time of 60 seconds CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60); return 1; }
vehicletype The model for the vehicle. Float:X The X coordinate for the vehicle. Float:Y The Y coordinate for the vehicle. Float:Z The Z coordinate for the vehicle. Float:rotation The facing angle for the vehicle. color1 The primary color ID. color2 The secondary color ID. respawn_delay The delay until the car is respawned without a driver in seconds. Using -1 will prevent the vehicle from respawning. addsiren Added in 0.3.7; will not work in earlier versions. Has a default value 0. Enables the vehicle to have a siren, providing the vehicle has a horn.