What to do in 2 ambulances to enter only 276 medical skin
#1

What to do in 2 ambulances to enter only 276 medical skin

ambulance1 = AddStaticVehicle(416, X, Y, Z, Angle, 1, 3);
ambulance2 = AddStaticVehicle(416, X, Y, Z, Angle, 1, 3);

Only with 276 skin (Medic)
Reply
#2

You'll need to check the vehicle ID and skin when the player's state changes.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vID = GetPlayerVehicleID(playerid);
        if((vID == ambulance1 || vID == ambulance2) && GetPlayerSkin(playerid) != 276)
        {
            RemovePlayerFromVehicle(playerid);
        }
    }
    return true;
}
Reply
#3

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)