21.10.2013, 06:30
Bom gente meu comando /admins funciona no Meu servidor Local mais quando eu Upo pra samphost Nгo funciona olhem:
Ajuda Por Favor,Obrigado
pawn Код:
COMMAND:admins(playerid, params[])
{
new AdminList[500], Name[24];
SendAdminText(playerid, "/admins", params);
if (APlayerData[playerid][LoggedIn] == true)
{
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, Name, sizeof(Name));
if (APlayerData[i][PlayerLevel] > 0)
{
format(AdminList, 500, "%s%s: %s (id: %i), Level de admin: %i\n", AdminList, AdminLevelName[APlayerData[i][PlayerLevel]], Name, i, APlayerData[i][PlayerLevel]);
}
}
}
if (strlen(AdminList) > 0) ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_LIST, "Admins Online:", AdminList, "OK", "Cancelar");
else SendClientMessage(playerid, 0xFF0000FF, "Nгo tem admins online agora!");
}
return 1;
}