[Ajuda] Transformando em Zcmd
#1

Olб, estou querendo setar isso apenas para admin transformando em cmd que o aumento de dano seja apenas para admins.

Код HTML:
GetPlayerKeys(playerid,Keys,ud,lr);
    if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 1) {
        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 > 1) {
                            SetPlayerArmour(i,armour+40);
                            return false;
                        }
                        SetPlayerHealth(i,health+40);
 
                    }
                }
            }
        }
    }
 
        return 1;
}
Reply
#2

Quote:
Originally Posted by merloch
Посмотреть сообщение
Olб, estou querendo setar isso apenas para admin transformando em cmd que o aumento de dano seja apenas para admins. agradeзo desde jб

Код HTML:
GetPlayerKeys(playerid,Keys,ud,lr);
    if(Keys == KEY_FIRE && GetPlayerWeapon(playerid) == 1) {
        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 > 1) {
                            SetPlayerArmour(i,armour+40);
                            return false;
                        }
                        SetPlayerHealth(i,health+40);
 
                    }
                }
            }
        }
    }
 
        return 1;
}
Reply
#3

vocк quer isso em comando normal?
Reply
#4

Quote:
Originally Posted by s4kuL
Посмотреть сообщение
vocк quer isso em comando normal?
Sim que seja apenas para admins sу funcione neles
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)