SA-MP Forums Archive
[Ajuda] Arma que tire 20 de dano nao funciona - 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] Arma que tire 20 de dano nao funciona (/showthread.php?tid=422883)



Arma que tire 20 de dano nao funciona - [Dark]Danny_Uchiha - 15.03.2013

Quote:

if (strcmp("/rasengan", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid, 13, 1);
static
Interator;
Interator = GetMaxPlayers();
for (; Interator > -1; --Interator)
{
if (IsPlayerConnected(Interator))
{}
}
SendClientMessageToAll(-1, "Rasengan!!");
SetTimerEx("Reset", 6*150, false, "i", playerid);
return true;
}

ISSO EM BAIXO E O DANO!

#include <a_samp>
new
Float,
Float:y,
Float:z,
Keys,
ud,
lr,
Float:health,
Float:armour
;
public OnPlayerUpdate(playerid)
{
GetPlayerKeys(playerid,Keys,ud,lr);
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 13) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 0, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-20);
return false;
}
SetPlayerHealth(i,health-20);
}
}
}
}
}
return 1;
}

alguem me ajuda... gostaria de que alguem pudesse Adaptalo para FS (LLadmin)

EU COMPILO CERTINHO MAIS NAO DA NENHUM ERRO. E QUANDO EU ENTRO DIGITO O COMANDO E NAO FUNCIONA.

se alguem pudesse tirar aquela arma id 13 e colocaзe a Bola de Praia no Lugar, Object id 1598.



Respuesta: Arma que tire 20 de dano nao funciona - Parka - 15.03.2013

Skype: cesar.delgado39