18.11.2010, 01:05
Como eu posso aumentar o dano das armas? (Pelo menos de algumas)
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 0) {
if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 24 || 25 || 26) {
#include <a_samp>
new
Float:x,
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) == 0) {
for(new i=0;i<500;i++) {
if(IsPlayerConnected(i)) {
GetPlayerPos(playerid, x, y, z);
if(playerid != i){
if(IsPlayerInRangeOfPoint(i, 1.5, x,y,z)) {
GetPlayerArmour(playerid, armour);
GetPlayerHealth(i,health);
if(armour > 0) {
SetPlayerArmour(i,armour-40);
return false;
}
SetPlayerHealth(i,health-40);
}
}
}
}
}
return 1;
}
///////////////////////////////////////
/// Autoria de www-feksquad-com ////
/// Criado por DraKiNs ////
/// Colaborado por Higor ////
///////////////////////////////////