Need help here badly. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help here badly. (
/showthread.php?tid=336517)
Need help here badly. -
Faisal_khan - 22.04.2012
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.
Re: Need help here badly. -
IceCube! - 22.04.2012
pawn Код:
if (IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
Re: Need help here badly. -
Faisal_khan - 22.04.2012
Thank you it worked.
Re: Need help here badly. -
IceCube! - 22.04.2012
No probs, if you need help next time you already have my skype :S :P
Re: Need help here badly. -
Faisal_khan - 22.04.2012
Who are you? Name on skype?
Re: Need help here badly. -
IceCube! - 22.04.2012
Well my skype name is just Tom, my skype account is Hewlett_T