if(text[0] == '!')
{
if(PInfo[playerid][Level] >= 2)
{
static lol[200];
format(lol, sizeof(lol),"{77C7F2}( Chat ADM ) %s: {FFFFFF}%s",GetPlayerName2(playerid) ,text[1]);
SendAdminMessage(-1,lol);
return false;
}
}
C:\Documents and Settings\Vini\Desktop\LSA v1.0\gamemodes\zumbi.pwn(3218) : error 017: undefined symbol "GetPlayerName2"
format(lol, sizeof(lol),"{77C7F2}( Chat ADM ) %s: {FFFFFF}%s",GetPlayerName2(playerid) ,text[1]);
stock GetPlayerName2(playerid) {
new NAME[21];
GetPlayerName(playerid, NAME, 21);
return NAME;
}
Cara nгo entendi... uma variavel tipo essa:
new pnome[MAX_PLAYER_NAME]; ? |
if(text[0] == '#')
{
if(PInfo[playerid][Level] > 2)
{
static lol[250];
format(lol, sizeof(lol),"{69b3db}( Chat ADM ) %s: {FFFFFF}%s",PlayerName2(playerid) ,text[1]);
SendAdminMessage(-1,lol);
return false;
}
}
if(text[0] == '#')
{
if(PInfo[playerid][Level] > 2)
{
new texto[128];
new string[256];
if(sscanf(cmdtext, "s[128]", texto))
{
format(string, sizeof(string), "(») Chat-Admin («) %s (%d) diz: %s", GetPlayerNameEx(playerid), playerid, texto);
ABroadCast(-1, string, 1);
}
}
else
{
SendClientMessage(playerid, Vermelho, "Vocк nгo tem permissгo para usar este comando!");
}
return 1;
}
}
forward ABroadCast(COLOR, const string[], level);
public ABroadCast(COLOR, const string[], level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pAdmin[i] >= level) // aqui vocк ajudas os leveis do seu admin de acordo com seu GM
{
SendClientMessage(i, COLOR, string);
}
}
}
return 0;
}