#include <a_samp>#include <zcmd>#include <sscanf2>enum pInfo { Adminszint, Adminrang[32], Jail,bool:Adminseged};new PlayerInfo[MAX_PLAYERS][pInfo];new Adminszintek[][] = {\"Játékos\",\"Moderátor\",\"1* Admin\",\"2* Admin\",\"3* Admin\",\"Főadmin\",\"Mapper\",\"Tulaj\"};CMD:a(playerid,params[]){if(PlayerInfo[playerid][Adminszint] != 0 || PlayerInfo[playerid][Adminseged] == true){ new string[128]; if(sscanf(params,\"s[128]\",string)) return SendClientMessage(playerid,-1,\"Használat: /a [szöveg]\"); new AcString[256]; format(AcString,sizeof(AcString),\"AdminChat: %s %s: %s\",Adminszintek[PlayerInfo[playerid][Adminszint]],Name(playerid),string); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[Adminszint] != 0 || PlayerInfo[Adminseged] == true) { SendClientMessage(i,-1,AcString); } }}else SendClientMessage(playerid,-1,\"Nem vagy admin!\");return 1;}
CMD:a(playerid,params[]){ if(PlayerInfo[playerid][Adminszint] != 0 || PlayerInfo[playerid][Adminseged] == true) { new string[128]; if(sscanf(params,\"s[128]\",string)) return SendClientMessage(playerid,-1,\"Használat: /a [szöveg]\"); new AcString[256]; format(AcString,sizeof(AcString),\"AdminChat: %s %s: %s\",Adminszintek[PlayerInfo[playerid][Adminszint]],Name(playerid),string); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[Adminszint] != 0 || PlayerInfo[Adminseged] == true) { SendClientMessage(i,-1,AcString); } } } else SendClientMessage(playerid,-1,\"Nem vagy admin!\"); return 1;}
stock Name(playerid){ new pName[24]; GetPlayerName(playerid,pName,24); return pName;}