20.08.2012, 20:29
PHP код:
forward bomb(playerid, vehicleid);
PHP код:
SetTimer("bomb", 5000, false);
PHP код:
public bomb(playerid, vehicleid)
{
if(IsPlayerInRangeOfPoint(playerid,700,-1952.4735,661.1452,118.8698))
{
new Float:x, Float:y, Float:z;
GetVehiclePos(vehicleid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
}
return 1;
}