[Ajuda] Como passo para exceto Admin ?
#1

Como eu colocaria isso para exceto admin ??

pawn Код:
if(GetPlayerWeapon(i) == 38)
                {
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun /tv nele rapido", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
                SetPlayerPos(i,-123.7512,-2869.0913,183.3834+600);
                //ResetPlayerWeaponsEx(i);
                SetPlayerArmedWeapon(i, 0);
                }
Reply
#2

PHP код:
    if(IsPlayerAdmin(playerid))
    {
        if(
GetPlayerWeapon(i) == 38)
        {
            
GetPlayerName(igiveplayersizeof(giveplayer));
            
format(stringsizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun /tv nele rapido"giveplayer,i);
            
ABroadCast(COLOR_LIGHTRED,string,1);
            
SetPlayerPos(i,-123.7512,-2869.0913,183.3834+600);
            
//ResetPlayerWeaponsEx(i);
            
SetPlayerArmedWeapon(i0);
        }
    } 
Reply
#3

PHP код:
if(GetPlayerWeapon(i) == 38 && PlayerInfo[playerid][pAdmin] < 1)
                {
                
GetPlayerName(igiveplayersizeof(giveplayer));
                
format(stringsizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun /tv nele rapido"giveplayer,i);
                
ABroadCast(COLOR_LIGHTRED,string,1);
                
SetPlayerPos(i,-123.7512,-2869.0913,183.3834+600);
                
//ResetPlayerWeaponsEx(i);
                
SetPlayerArmedWeapon(i0);
                } 
Reply
#4

Vai dar erro olha o resto do codigo:
pawn Код:
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
        {
// Minigun
if(GetPlayerWeapon(i) == 38)
                {
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun /tv nele rapido", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
                SetPlayerPos(i,-123.7512,-2869.0913,183.3834+600);
                //ResetPlayerWeaponsEx(i);
                SetPlayerArmedWeapon(i, 0);
                }
// Lanзa chamas
else if(GetPlayerWeapon(i) == 37)
                {
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Lanзa Chamas /tv nele rapido", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
                SetPlayerPos(i,-123.7512,-2869.0913,183.3834+600);
                //ResetPlayerWeaponsEx(i);
                SetPlayerArmedWeapon(i, 0);
                }
Reply
#5

basta vc usar
PHP код:
if(GetPlayerWeapon(i) == arma && PlayerInfo[playerid][pAdmin] < 1
caso sua variavel seja pAdmin mesmo neh..
Reply
#6

Ta dando esse erro:
pawn Код:
C:\Documents and Settings\familia mr\Desktop\'\GM\BPL\gamemodes\BPL.pwn(57260) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#7

PHP код:
if(GetPlayerWeapon(i) == arma && PlayerInfo[i][pAdmin] < 1
Reply
#8

Entao da dando o erro
Reply
#9

alguem online
Reply
#10

Vlw der certo rep++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)