CMD:miazindok(playerid, params[]){ new str[256]; format(str, sizeof(str), \"Ezzel az indokkal bannoltak ki: %s\", PlayerInfo[playerid][bannindok]); SendClientMessage(playerid, -1, str); return 1;}
dini_Int(ide a fájl változója, \"Ide, amelyik sorba mentetted a stringet.\");
CMD:miazindok(playerid, params[]){ new str[256]; format(str, sizeof(str), \"Ezzel az indokkal bannoltak ki: %s\", dini_Int(ide a fájl változója, \"Ide, amelyik sorba mentetted a stringet.\")); SendClientMessage(playerid, -1, str); return 1;}
INI_Int(bannindok,\"Indok\")
CMD:miazindok(playerid, params[]) { new str[256]; format(str, sizeof(str), \"Ezzel az indokkal bannoltak ki: %s\", INI_Int(bannindok,\"Indok\")); SendClientMessage(playerid, -1, str); return 1; }
#define COPPATH \"Regizve/Bannoltak/%s.ini\"
enum pInfo{bann,bannindok}
forward LoadBannoltUser_data(playerid,name[],value[]);public LoadBannoltUser_data(playerid,name[],value[]){ INI_Int(\"Bann\",PlayerInfo[playerid][bann]); INI_Int(\"Indok\",PlayerInfo[playerid][bannindok]); return 1;}stock UserBannoltPath(playerid){ new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),COPPATH,playername); return string;}
bannindok[32]
format(PlayerInfo[playerid][bannindok],sizeof(PlayerInfo[playerid][bannindok],\"Cheater\");
strmid(PlayerInfo[playerid][bannindok],\"Cheater\",0,strlen(\"Cheater\"),sizeof(PlayerInfo[playerid][bannindok])
new uzi[64];format(uzi,\"Kilettel bannolva! Indok: %s\",PlayerInfo[playerid][bannindok]);SendClientMessage(kinek,-1,uzi);
forward LoadBannoltUser_data(playerid,name[],value[]); public LoadBannoltUser_data(playerid,name[],value[]) { INI_Int(\"Bann\",PlayerInfo[playerid][bann]); INI_String(\"Indok\",PlayerInfo[playerid][bannindok], 32); return 1; } stock UserBannoltPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); format(string,sizeof(string),COPPATH,playername); return string; }