OnPlayerExitVehicle
#6

Quote:
Originally Posted by Redgie
Посмотреть сообщение
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (GetVehicleModel(vehicleid) == 432) //Sets the players skin upon entering the rhino
    {
        SetPlayerSkin(playerid, 287);
        return 1;
    }
}
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if (GetVehicleModel(vehicleid) == 432)
    {
        SetPlayerSkin(playerid, skin); //Replace skin with the skin you want them to have upon exiting the rhino
        return 1;
    }
}
NOTE: This will change the skin when they begin entering the vehicle, which means if they enter but then cancel, they will still be given the skin, consider using OnPlayerStateChange instead
OnPlayerExitVehicle did not work. and crash the game
Reply


Messages In This Thread
OnPlayerExitVehicle - by cruising - 15.08.2010, 14:26
Re: OnPlayerExitVehicle - by Redgie - 15.08.2010, 14:35
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 14:42
Re: OnPlayerExitVehicle - by Cameltoe - 15.08.2010, 14:46
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 14:56
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 15:10

Forum Jump:


Users browsing this thread: 3 Guest(s)