SA-MP Forums Archive
Help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me (/showthread.php?tid=333766)



Help me - Youtube12 - 12.04.2012

Hi guys , can u help me with the scirpt , when I port to a Map , I want to port with my Vehicle.

Help please

Thx.
Best Regards.


Re: Help me - Macluawn - 12.04.2012

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //checks if player is in a vehicle
{
    new vehicleid = GetPlayerVehicleID(playerid); //declares a variable and sets it to the players vehicles id
    SetVehiclePos(vehicleid, 123.4567, 123.4567, 123.4567); //changes vehicles position
    SetVehicleZAngle(vehicleid, 234.5678); //sets vehicles angle
    PutPlayerInVehicle(playerid, vehicleid, 0); //puts the player in vehicles driver seat
}



AW: Re: Help me - Youtube12 - 12.04.2012

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) //checks if player is in a vehicle
{
    new vehicleid = GetPlayerVehicleID(playerid); //declares a variable and sets it to the players vehicles id
    SetVehiclePos(vehicleid, 123.4567, 123.4567, 123.4567); //changes vehicles position
    SetVehicleZAngle(vehicleid, 234.5678); //sets vehicles angle
    PutPlayerInVehicle(playerid, vehicleid, 0); //puts the player in vehicles driver seat
}
Thx Macluawn, its works fine.

Best Regards.