29.03.2012, 17:42
How can i make some cars unenterable like if the
is not assigned, then the player cant enter the vehicle?
Код:
if(IsOnTutorial[playerid] == 1)
if(IsOnTutorial[playerid] == 1)
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsOnTutorial[playerid] == 1) ClearAnimations(playerid); //wiil stop the player from entering the vehicle !
}
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
if(IsOnTutorial[playerid] == 0) RemovePlayerFromVehicle(playerid);
//other codes
}