05.04.2015, 18:47
PUBLIC:CentraleExplosion()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(2.0, i, -1477.1708,978.7495,10.7425) || PlayerToPoint(2.0, i, -1477.0042,976.5752,10.7425) || PlayerToPoint(2.0, i, -1476.3779,973.9634,10.7360) || PlayerToPoint(2.0, i, -1475.1206,971.6609,10.7360) || PlayerToPoint(2.0, i, -1478.2518,973.4955,10.7425) || PlayerToPoint(2.0, i, -1479.8469,977.2452,10.7425) || PlayerToPoint(2.0, i, -1471.8712,978.3095,10.7360))
{
if(CentraleBlown == 1)
{
SendClientMessage(i,COLOR_RED,"Vous devez exploser la centrale йlйctrique.");
new Float, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
}
}
}
}
When i go near to those positions, i don't get any explosion !
Help?
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(2.0, i, -1477.1708,978.7495,10.7425) || PlayerToPoint(2.0, i, -1477.0042,976.5752,10.7425) || PlayerToPoint(2.0, i, -1476.3779,973.9634,10.7360) || PlayerToPoint(2.0, i, -1475.1206,971.6609,10.7360) || PlayerToPoint(2.0, i, -1478.2518,973.4955,10.7425) || PlayerToPoint(2.0, i, -1479.8469,977.2452,10.7425) || PlayerToPoint(2.0, i, -1471.8712,978.3095,10.7360))
{
if(CentraleBlown == 1)
{
SendClientMessage(i,COLOR_RED,"Vous devez exploser la centrale йlйctrique.");
new Float, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
}
}
}
}
When i go near to those positions, i don't get any explosion !
Help?