[HELP] Vehicle Spawn
#1

Why dosent the vehicle spawn and put the player in the vehicle?


pawn Код:
if(listitem == 0) // Andromada
            {
                new vehicleid;
                vehicleid = GetPlayerVehicleID(playerid);
   
                new Float:X, Float:Y, Float:Z, Float:A;
                GetPlayerPos(playerid, X,Y,Z);
                GetPlayerFacingAngle(playerid, A);
                CreateVehicle(592, X,Y,X,A, -1, -1, -1);
                PutPlayerInVehicle(playerid, vehicleid, 0);
                return 1;
            }
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    new currentveh;
    currentveh = GetPlayerVehicleID(playerid);
    DestroyVehicle(currentveh);
    return 1;
}
Reply


Messages In This Thread
[HELP] Vehicle Spawn - by Larsey123IsMe - 08.01.2011, 01:09
Re: [HELP] Vehicle Spawn - by famas.[FTW] - 08.01.2011, 01:20
Re: [HELP] Vehicle Spawn - by Larsey123IsMe - 08.01.2011, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)