[HELP]How can add a vehicle on "public OnPlayerRequestClass(playerid, classid)"?
#4

Quote:
Originally Posted by [___
Whitetiger [www.sampcommunity.com] ]
you can only use AddStaticVehicle in OnGameModeInit(), if you want to create a vehicle you should use, CreateVehicle.

Код:
new tmp = CreateVehicle(...);
// tmp = Vehicle ID
//for out of function vehicle ID, you should use GetPlayerVehicleID(playerid);
//later in the script, you should destroy your car
new mycar = GetPlayerVehicleID(playerid);
DestroyVehicle(mycar);
yeah but i want a train and it works only witd addstaticvehicle
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)