[POMOC] Minsko polje

Započeo [CM] BrunoHP, Februar 23, 2011, 21:55:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja vlastita od 0
Detaljan opis problema: Napravio sam sistem kada igrac dode do jednog mjesta(stane na minu) da se stvori eksplozija, ali nece se stvoriti.

public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 1
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2877.2229,-139.6167,5.7029, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 2
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2868.6833,-148.9575,7.6144, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 3
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2877.6995,-160.4151,5.3736, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 4
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2868.3286,-170.2658,7.2829, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 5
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2875.2891,-180.8458,5.5802, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 6
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2865.3416,-190.9665,7.8405, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 7
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2875.5027,-201.5813,5.6757, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 8
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2866.6094,-214.6471,8.5542, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 9
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2878.9326,-228.3956,5.5053, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 10
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2866.1218,-241.7951,9.4124, 0, 5);
}
else if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Mina 11
GameTextForPlayer(i, "~r~MINA", 5000, 5);
CreateExplosion(-2879.6379,-256.8419,5.9780, 0, 5);
}
}
}
return 1;
}
Poslednja Izmena: Februar 23, 2011, 22:57:38 POSLE PODNE od BrunoHP