Need help here badly.
#1

Hi SA-Mp Community,

What is the problem here:
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(!IsPlayerConnected(playerid)) return 0;
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(MineInfo); i++)
        {
            if(IsPlayerInRangeOfPoint(playerid, 1, MineInfo[mX], MineInfo[mY], MineInfo[mZ]))
            {
                if(MineInfo[mCreated] == 1)
                {
                    if (IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) != 411)
                    {
                        return 1;
                    }
                    else
                    {
                        CreateExplosion(MineInfo[mX], MineInfo[mY], MineInfo[mZ], 7, 20.0);
                        DestroyObject(MineInfo[mObject]);
                    }
                    return 0;
                }
            }
        }
    }
    return 1;
}
The car with id 411 is also exploding. I don't want it to explode in car 411 i.e. Infernus.
Reply
#2

pawn Код:
if (IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
Reply
#3

Thank you it worked.
Reply
#4

No probs, if you need help next time you already have my skype :S :P
Reply
#5

Who are you? Name on skype?
Reply
#6

Well my skype name is just Tom, my skype account is Hewlett_T
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)