Help me
#1

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.
Reply
#2

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
}
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)