15.03.2013, 19:16
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; } |
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.