public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
new string[256];
format(string,sizeof(string),"[ID:%d][ADM-RCON] %s ",playerid,text);
SendPlayerMessageToAll(playerid,string);
return false;
}
return false;
}
public OnPlayerText(playerid, text[])
{
switch (Administrador[playerid]) // A variavel de Admin
{
case 0: // se й Level 0
{
new string[256];
format(string,sizeof(string),"{696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 1: // se й Level 1
{
new string[256];
format(string,sizeof(string),"{4876FF}[TEMPORARIO] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 2: // se й Level 2
{
new string[256];
format(string,sizeof(string),"{4876FF}[COLABORADOR] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 3: // se й Level 3
{
new string[256];
format(string,sizeof(string),"{4876FF}[MODERADOR] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
}
return 0;
}
stock Nome(playerid)
{
new ANome[MAX_PLAYER_NAME];
GetPlayerName(playerid, ANome, sizeof(ANome));
return ANome;
}
Fiz um Exemplo pra vocк Funcional
pawn Код:
pawn Код:
|
Tipo no nivel 0 eu vou quero colocar o [JOGADOR]
ai dps do nivel 3000 eu quero colocar o [VIP] tem como?? |
Eu testei coloquei na gm tentei em todo lugar da gm Nгo deu certo :/
me adicione no skype paulo43626 |
stock Nome(playerid)
{
new ANome[MAX_PLAYER_NAME];
GetPlayerName(playerid, ANome, sizeof(ANome));
return ANome;
}
C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(23205) : warning 219: local variable "Nome" shadows a variable at a preceding level C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(36868) : warning 219: local variable "Nome" shadows a variable at a preceding level C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37250) : error 029: invalid expression, assumed zero C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37250) : error 017: undefined symbol "text" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37253) : error 001: expected token: ")", but found "{" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 014: invalid statement; not in switch C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : warning 215: expression has no effect C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 001: expected token: ";", but found ":" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 029: invalid expression, assumed zero C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.
Bom eu coloquei
pawn Код:
o outro codigo eu coloquei mais pro fim da gm =) Errors: Код:
C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(23205) : warning 219: local variable "Nome" shadows a variable at a preceding level C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(36868) : warning 219: local variable "Nome" shadows a variable at a preceding level C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37250) : error 029: invalid expression, assumed zero C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37250) : error 017: undefined symbol "text" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37253) : error 001: expected token: ")", but found "{" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 014: invalid statement; not in switch C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : warning 215: expression has no effect C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 001: expected token: ";", but found ":" C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : error 029: invalid expression, assumed zero C:\Users\Administrador\Desktop\BRASIL PLAY LEGENDS GM NOVA\gamemodes\BPSF.pwn(37254) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors. |