20.05.2011, 18:07
What's the deal with AddStaticVehicleEx? In the wiki it says it only works when used in OnGameModeInit, but I have it in a command, something like this:
ID 538 is a train, which obviously can't be spawned with CreateVehicle. But I just used AddStaticVehicleEx in a command and it works perfectly fine. When I'm somewhere near the tracks and use /train, it spawns on the tracks and I can get in and drive it and all that. I can even get rid of it with DestroyVehicle even though I read somewhere that it wasn't possible to use that on vehicles created with AddStaticVehicleEx.
So why does the wiki tell me that AddStaticVehicleEx only works in OnGameModeInit, when it actually works fine elsewhere? Is it because I'm using ZCMD or something?
pawn Код:
CMD:train(playerid, params[]){
//some code
AddStaticVehicleEx(538, x, y, z, a, -1, -1, -1);
//some other code
}
So why does the wiki tell me that AddStaticVehicleEx only works in OnGameModeInit, when it actually works fine elsewhere? Is it because I'm using ZCMD or something?