CMD:admins(playerid,params[]){SendClientMessage(playerid,COLOR_LIME,\"_________[Online Adminok]____________\");new alvl[][] = {\"Játékos\", \"Admin\",\"Moderátor\",\"Tulajdonos\"};for(new i;i<MAX_PLAYERS;i++){ if(GetPVarInt(i,\"AdminLvl\") > 0) { format(szFormat,sizeof(szFormat),\"%s - Szint:%d - Rang:%s ,\",pName(i),GetPVarInt(i,\"AdminLvl\"),alvl[GetPVarInt(i,\"AdminLvl\")]); SendClientMessage(playerid,-1,szFormat); }}return 1;}
CMD:admins(playerid){ SendClientMessage(playerid, COLOR_LIME, \"_________[Online Adminok]____________\"); new alvl[][] = { \"Játékos\", \"Admin\", \"Moderátor\", \"Tulajdonos\" }; for(new i; i < MAX_PLAYERS; i++) { if(GetPVarInt(i, \"AdminLvl\") > 0) { new szFormat[128]; // lehet, hogy nagyobb méret kellene a karakterláncnak format(szFormat, 128, \"%s - Szint: %i - Rang: %s ,\", pName(i), GetPVarInt(i, \"AdminLvl\"), alvl[GetPVarInt(i, \"AdminLvl\")]); SendClientMessage(playerid, -1, szFormat); } } return 1;}
new alvl[][12] = { \"Játékos\", \"Admin\", \"Moderátor\", \"Tulajdonos\" };CMD:admins(playerid){ SendClientMessage(playerid, COLOR_LIME, \"_________[Online Adminok]____________\"); for(new i; i < MAX_PLAYERS; i++) { if(GetPVarInt(i, \"AdminLvl\") > 0){ new szFormat[128]; format(szFormat, 128, \"%s - Szint: %i - Rang: %s\", pName(i), GetPVarInt(i, \"AdminLvl\"), alvl[GetPVarInt(i, \"AdminLvl\")]); SendClientMessage(playerid, -1, szFormat); } } return 1;}stock pName(playerid){new n[24];GetPlayerName(playerid, n, 24);return n;}