Quote:
Originally Posted by Twizted
Nгo testei.
pawn Код:
new bool:ADMIN_AFK[MAX_PLAYERS], STRING_1[129], STRING_2[129], NOME[24];
GetPlayerName(playerid, NOME, sizeof(NOME));
OnPlayerPause: ADMIN_AFK[playerid] = true;
/admins: foreach (new i : Player) { if(IsPlayerAdmin(playerid)) //troque por sua variбvel { if(ADMIN_AFK[i]) { format(STRING_1, sizeof(STRING_1) "%s [Inativo ESC]", NOME); SendClientMessage(playerid, -1, "STRING_1"); } else { format(STRING_2, sizeof(STRING_2), "$s", NOME); SendClientMessage(playerid, -1, "STRING_2"); } } }
|
Callback OnPlayerPause Nao e nativa do SA-MP tens de declarar de que include a usas para ele saber.
quanto a isto:
pawn Код:
format(STRING_1, sizeof(STRING_1) "%s [Inativo ESC]", NOME);
SendClientMessage(playerid, -1, "STRING_1");
tens a nocao do que fizeste?