Linking a skin to all of a vehicle ID
#4

He seems to have mixed Vehicle ID with Model ID.

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    switch(newstate)
    {
        case PLAYER_STATE_DRIVER,PLAYER_STATE_PASSENGER:
        {
            if(GetVehicleModel(GetPlayerVehicleID(playerid))==416) //If the player's vehicle id's model is the ambulance
            {
                new skin=GetPlayerSkin(playerid);
                if( (skin!=X) && (skin!=X) )
                {
                    RemovePlayerFromVehicle(playerid);
                    SendClientMessage(playerid,0xFF0000FF,"You are not a medic");
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)