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