[AJUDA] +REP
#1

Estou com esse code ai e queria saber como eu faзo pra bloquear so para adm de lvl 1 pra cima porque ta sу como adm com rcon. vlw
{
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
return 1;
}
Reply
#2

Coloque [pawn*] [/*pawn] (Sem asteristicus)

e Passe Variavel do admin
Reply
#3

pAdmin
Reply
#4

Quote:
Originally Posted by peumenezes
Посмотреть сообщение
Estou com esse code ai e queria saber como eu faзo pra bloquear so para adm de lvl 1 pra cima porque ta sу como adm com rcon. vlw
{
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
return 1;
}
pawn Код:
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
    SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
    return 1;
}
Curta .
Reply
#5

Vou testar
Reply
#6

pawn Код:
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid-1, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
return 1;
}
Espero te Ajudado
Reply
#7

pawn Код:
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(pAdmin[playerid] == 1) return SendClientMessage(playerid-1, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
return 1;
}
Nгo sei se vai da certo.
@ EDIT
Ou assim
pawn Код:
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1) return SendClientMessage(playerid-1, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
return 1;
}
Reply
#8

deu esse erro :

C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG .pwn(360 : error 033: array must be indexed (variable "pAdmin")
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG .pwn(360 : error 029: invalid expression, assumed zero
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG .pwn(360 : warning 215: expression has no effect
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG .pwn(360 : error 001: expected token: ";", but found "return"
C:\DOCUME~1\PEUMEN~1\Desktop\SAMP03~1\GAMEMO~1\BTG .pwn(360 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#9

Desculpe, tente:
pawn Код:
if(strcmp(cmdtext,"/logoadm", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COR_AZUL_PISCINA, " Vocк nгo й um adminstrador");
    SetPlayerAttachedObject(playerid, 1, 18749, 1, 0.800000, 0.000000, 0.000000, 156.986312, 100.000000, 20.000000, 1.332795, 2.000000, 1.486337 ); // SAMPLogoSmall
    return 1;
}
@EDITADO
Reply
#10

[NVC]Eduardo esse que tu passou funfou aqui agora vou testar no jogo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)