newpID[MAX_PLAYERS],pName[MAX_PLAYER_NAME],str[128],count;#define ADMINOK 5555#define PM 5556CMD:adminok(playerid){for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(IsPlayerLAdmin(playerid)) { GetPlayerName(i,pName,sizeof(pName)); format(str,sizeof(str),\"%s\",pName(i)); pID; count++; } }}if(count == 0){ ShowPlayerDialog(playerid,ADMINOK,DIALOG_STYLE_MSGBOX,\"Online Adminok\",\"Nincs online adminisztrátor!\",\"PM\",\"Kilépés\");}ShowPlayerDialog(playerid,ADMINOK,DIALOG_STYLE_LIST,\"Online Adminok\",str,\"PM\",\"Kilépés\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == ADMINOK){ if(response) { ShowPlayerDialog(playerid,PM,DIALOG_STYLE_INPUT,\"Privát üzenet\",\"Írd be a kívánt üzenetet és továbítsuk az adminnak\",\"Küld\",\"Kilépés\"); }}if(dialogid == PM){ if(response) { GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),\"%s Üzenete: %s\",pName,inputtext); SendClientMessage(pID[listitem],-1,str); }}return 1;}
Köszönöm ! Megy a + , de egy hiba.D:\\Documents and Settings\\XP\\Asztal\\SAMP Szerver\\filterscripts\\OnAdmin.pwn(54) : warning 203: symbol is never used: \"adminok\"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Warning.
#include zcmd
newpID[MAX_PLAYERS],pName[MAX_PLAYER_NAME],str[128],count;#define ADMINOK 5555#define PM 5556CMD:adminok(playerid){for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(IsPlayerLAdmin(playerid)) { GetPlayerName(i,pName,sizeof(pName)); format(str,sizeof(str),\"%s%s\\n\", str, pName); pID; count++; } }}if(count == 0){ ShowPlayerDialog(playerid,ADMINOK,DIALOG_STYLE_MSGBOX,\"Online Adminok\",\"Nincs online adminisztrátor!\",\"PM\",\"Kilépés\");}ShowPlayerDialog(playerid,ADMINOK,DIALOG_STYLE_LIST,\"Online Adminok\",str,\"PM\",\"Kilépés\");return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == ADMINOK){ if(response) { ShowPlayerDialog(playerid,PM,DIALOG_STYLE_INPUT,\"Privát üzenet\",\"Írd be a kívánt üzenetet és továbítsuk az adminnak\",\"Küld\",\"Kilépés\"); }}if(dialogid == PM){ if(response) { GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),\"%s Üzenete: %s\",pName,inputtext); SendClientMessage(pID[listitem],-1,str); }}return 1;}