CMD:lecsuk(playerid, params[]){if(IsPlayerLuxAdmin(playerid)){ new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];if (sscanf(params, \"uds\", giveplayerid, ido, indok)) SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [ido] [indok]\");else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");else{new jtime;if(jtime == 0) jtime = 9999;AccInfo[name2][JailTime] = jtime*1000*60; SetTimerEx(\"JailPlayer\",5000,0,\"d\",name2); SetTimerEx(\"Jail1\",1000,0,\"d\",name2);if(jtime == 9999){GetPlayerName(playerid, name, sizeof(name));GetPlayerName(giveplayerid, name2, sizeof(name2));format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Börtönbe zárta %s -t {ff0000}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok); SendClientMessageToAll(0xB3D5B2AA,string); SetPlayerPos(giveplayerid,264.6288,77.5742,1001.0391); SetPlayerInterior(giveplayerid, 6); TogglePlayerControllable(giveplayerid,0); }}return 1;}
dcmd_jail(playerid,params[]){if(AccInfo[playerid][LoggedIn] == 1){if(AccInfo[playerid][Level] >= 1){ new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /jail [Játékos ID] [Perc] [indok]\") && SendClientMessage(playerid, orange, \"Funkció: Börtönbe zárod a játékost\"); new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128]; player1 = strval(tmp); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && (AccInfo[player1][Level] != ServerInfo[MaxAdminLevel])) { if(AccInfo[player1][Jailed] == 0) { GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname)); new jtime = strval(tmp2); if(jtime == 0) jtime = 9999; SendCommandToAdmins(playerid,\"Jail\"); AccInfo[player1][JailTime] = jtime*1000*60; SetTimerEx(\"JailPlayer\",5000,0,\"d\",player1); SetTimerEx(\"Jail1\",1000,0,\"d\",player1); AccInfo[player1][Jailed] = 1; if(jtime == 9999) { if(!strlen(params[strlen(tmp2)+1])) format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20}Börtönbe zárta {ff0000}%s -t.\",adminname,playername); else format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.\",adminname,playername,params[strlen(tmp)+1]); } else { if(!strlen(tmp3)) format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.{ff0000}[%d percre]\",adminname,playername, jtime); else format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.\",adminname,playername,jtime,params[strlen(tmp2)+strlen(tmp)+1]); } return SendClientMessageToAll(blue,string); } else return SendClientMessage(playerid, red, \"Játékos már börtönben van!\"); } else return SendClientMessage(playerid, red, \"Hiba!\");}else return ErrorMessages(playerid, 1);}else return SendClientMessage(playerid,red,\"Nem vagy rendszervezet tagja!\");}
CMD:lecsuk(playerid, params[]){if(AccInfo[playerid][LoggedIn] == 1){if(AccInfo[playerid][Level] >= 1){ new Index; new tmp[256]; tmp = strtok(params,Index); new tmp2[256]; tmp2 = strtok(params,Index); new tmp3[256]; tmp3 = strtok(params,Index); if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /lecsuk [Játékos ID] [Perc] [indok]\") && SendClientMessage(playerid, orange, \"Funkció: Börtönbe zárod a játékost\"); new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128]; player1 = strval(tmp); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && (AccInfo[player1][Level] != ServerInfo[MaxAdminLevel])) { if(AccInfo[player1][Jailed] == 0) { GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname)); new jtime = strval(tmp2); if(jtime == 0) jtime = 9999; SendCommandToAdmins(playerid,\"Jail\"); AccInfo[player1][JailTime] = jtime*1000*60; SetTimerEx(\"JailPlayer\",5000,0,\"d\",player1); SetTimerEx(\"Jail1\",1000,0,\"d\",player1); AccInfo[player1][Jailed] = 1; if(jtime == 9999) { if(!strlen(params[strlen(tmp2)+1])) format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20}Börtönbe zárta {ff0000}%s -t.\",adminname,playername); else format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.\",adminname,playername,params[strlen(tmp)+1]); } else { if(!strlen(tmp3)) format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.{ff0000}[%d percre]\",adminname,playername, jtime); else format(string,sizeof(string),\"{00bbff}[RENDÕR,%s]: {008a20} Börtönbe zárta %s -t.\",adminname,playername,jtime,params[strlen(tmp2)+strlen(tmp)+1]); } return SendClientMessageToAll(blue,string); } else return SendClientMessage(playerid, red, \"Játékos már börtönben van!\"); } else return SendClientMessage(playerid, red, \"Hiba!\");}else return ErrorMessages(playerid, 1);}else return SendClientMessage(playerid,red,\"Nem vagy rendszervezet tagja!\");}
#include sscanfforward Bortonido(playerid);public Bortonido(playerid){SpawnPlayer(playerid);SendClientMessage(playerid, 0xFF0000FF, \"Lejárt a büntetésed, légy jó polgár!\");return 1;}
CMD:lecsuk(playerid, params[]){new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];if(AccInfo[playerid][Level] == 0) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy admin/nem megfelelõ a szinted.\");if (sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [ido] [indok]\");if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");GetPlayerName(playerid, name, sizeof(name));GetPlayerName(giveplayerid, name2, sizeof(name2));ido *= 60000;SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);SetPlayerPos(giveplayerid,264.6288,77.5742,1001.0391); SetPlayerInterior(giveplayerid, 6);format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Börtönbe zárta %s -t {ff0000}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok); SendClientMessageToAll(0xB3D5B2AA,string);return 1;}
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\LuxAdmin.pwn(5383) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\filterscripts\\LuxAdmin.pwn(5385) : error 021: symbol already defined: \"indok\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
#include <a_samp>#include <ldudb>#include <lfuncs>#include <fixchars.h>#include <sscanf>#include <zcmd>native WP_Hash(buffer[], len, const str[]);#pragma dynamic 145000//Lecsukforward Bortonido(playerid);public Bortonido(playerid){SpawnPlayer(playerid);SendClientMessage(playerid, 0xFF0000FF, \"Lejárt a büntetésed, légy jó polgár!\");return 1;}
CMD:lecsuk(playerid, params[]){new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];if(AccInfo[playerid][Level] == 1) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy rendõr/admin.\");if (sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [idõ] [indok]\");if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");GetPlayerName(playerid, name, sizeof(name));GetPlayerName(giveplayerid, name2, sizeof(name2));ido *= 60000;SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);SetPlayerPos(giveplayerid,264.6288,77.5742,1001.0391); SetPlayerInterior(giveplayerid, 6);format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Börtönbe zárta %s -t {ff0000}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok); SendClientMessageToAll(0xB3D5B2AA,string);return 1;}
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(28) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(132) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(172) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(280) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(337) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\dutils.inc(379) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\pawno\\include\\sscanf.inc(3) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(182) : warning 219: local variable \"string\" shadows a variable at a preceding levelE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 017: undefined symbol \"cmd_help\"E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 017: undefined symbol \"cmd_help\"E:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Krisz\\Asztal\\[R]endõr [A]cademy\\gamemodes\\Academy.pwn(191) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
CMD:help(playerid, params[]){ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{ffff00}Segítség\", \"{00ff00}Parancsokért: /parancsok\\nSzabályzatért: /szabály\\nTagfelvételért: /tgf\\nA szerveren lehetõséged van házat venni!\",\"Rendben\",\"\");return 1;}
#include zcmd