[AJUDa] Detector de metais - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDa] Detector de metais (
/showthread.php?tid=309743)
[AJUDa] Detector de metais -
Kelvin_Cesar - 08.01.2012
Bom, to com um problema neste codigo... Ele tira a arma, mas nao devolve...
PHP код:
forward DetectorMetais(weaponid, ammo);
public DetectorMetais(weaponid, ammo)
{
for(new x = 0; x <= PlayersOnline; x++)
{
if(IsPlayerInRangeOfPoint(x, 2.0, 247.8819,63.5701,1003.6406))
{
if(Checado[x])
{
GivePlayerWeapon(x, weaponid, ammo);
Checado[x] = false;
}
if(GetPlayerWeapon(x) > 0)
{
for(new i = 0; i < 13; i++)
{
GetPlayerWeaponData(x, i, ArmasDetector[x][i], ArmasBallasDetector[x][i]);
if(Checado[x])
{
if(IsPlayerInRangeOfPoint(x, 2.0, 245.8359,63.4817,1003.6406))
{
GivePlayerWeapon(x, ArmasDetector[x][i], ArmasBallasDetector[x][i]);
SendClientMessage(x, 0xFFFF00AA, "[INFO] Suas armas foram devolvidas !");
}
}
else
{
SendClientMessage(x, 0xFFFF00AA, "[INFO] Suas armas foram retiradas pelo detector de metais !");
ResetPlayerWeapons(x);
Checado[x] = true;
}
}
}
}
}
return 1;
}
Eu fiz dois IsPlayerInRangeOfPoint para testar se ele devolve a arma, mas nao ta devolvendo, se alguem poder me ajudar ficarei agradecido!
Re: [AJUDa] Detector de metais -
dPlaYer_ - 09.01.2012
Qual gamemode vocк usa?
Re: [AJUDa] Detector de metais -
Kelvin_Cesar - 09.01.2012
advanced