06.11.2012, 17:02
If you want to save the vehicle ID to an enum then its pretty simple, do something like this:
This is untested, let me know your results.
pawn Код:
else if(PlayerInfo[playerid][pCar] == 402)
{
new veh = CreateVehicle(402,-2467.9888,2223.9019,4.5598,1,1,1,0);
PutPlayerInVehicle(playerid, veh, 0);
GameTextForPlayer(playerid,"~h~~w~You brought a ~n~~h~~w~~h~~r~ Buffalo!",2500,1);
new carid = GetPlayerVehicleID(playerid);
Playerinfo[playerid][pCarID] = carid;
}