22.04.2012, 17:17
Hi SA-Mp Community,
What is the problem here:
The car with id 411 is also exploding. I don't want it to explode in car 411 i.e. Infernus.
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;
}