function adminLevelSet (command, who, adminlevelid)player = getPlayerFromName (who)if (player) then setElementData (player, \"adminlevel\", adminlevelid)outputChatBox (\"#00007F[bL] #FFFFFFÁtálitotta valaki az admin szinted \"..adminlevelid..\" számura!\",player,255,255,255, true)endendaddCommandHandler (\"setadmin\",adminLevelSet ) function getAdminLevel (command, who)thePlayer = localPlayerif (player) thenadminrang = getElementData (player, \"adminlevel\") outputChatBox (\"#00007F[bL] #FFFFFFA(z) Admin rangja \"..adminrang..\" számu!\",thePlayer,255,255,255, true)endendaddCommandHandler (\"getadmin\",getAdminLevel)
addCommandHandler(\"getadmin\",function (source, commandName, who)if who then if getPlayerFromName(who) then outputChatBox (\"#00007F[bL] #FFFFFFA(z) Admin rangja \"..getElementData(getPlayerFromName(who), \"adminlevel\")..\" számu!\",source,255,255,255, true) else outputChatBox(\"Nincs ilyen játékos!\", source) endelse outputChatBox(\"Használat: /getadmin [Játékos]\", source)endend)addCommandHandler(\"setadmin\",function (source, commandName, nev, szint)if nev or szint then if getPlayerFromName(nev) then setElementData(getPlayerFromName(nev), \"adminlevel\", szint) outputChatBox (\"#00007F[bL] #FFFFFFÁtálitotta valaki az admin szinted \"..szint..\" számura!\",getPlayerFromName(nev),255,255,255, true) else outputChatBox(\"Nincs ilyen játékos!\", source) endelse outputChatBox(\"Használat: /setadmin [Játékos] [szint]\", source)endend)
setElementData (thePlayer, \"adminlevel\", 0)setElementData (thePlayer, \"adminduty\", 0) addCommandHandler(\"getadmin\", function (source, commandName, who) adminrang = getElementData(source, \"adminlevel\") adminduty = getElementData(source, \"adminduty\") if adminrang <= 7 and adminduty == 1 then if who then if getPlayerFromName(who) then outputChatBox (\"#00007F[bL] #FFFFFFA(z) Admin rangja \"..getElementData(getPlayerFromName(who), \"adminlevel\")..\" számu!\",source,255,255,255,true) else outputChatBox(\"#00007F[bL] #FFFFFFNincs ilyen játékos!\", source,255,255,255,true) end else outputChatBox(\"#00007F[bL] #FFFFFFHasználat: /getadmin [Játékos]\", source,255,255,255,true) end elseif adminrang == 0 then outputChatBox(\"#00007F[bL] #FFFFFFNem vagy ADMIN!\", source,255,255,255,true) elseif adminrang <= 7 and adminduty == 0 then outputChatBox(\"#00007F[bL] #FFFFFFNem vagy adminszolgálatban!\", source,255,255,255,true) end end ) ---- addCommandHandler(\"setadmin\", function (source, commandName, nev, szint) if adminrang <= 7 and adminduty == 1 then if nev or szint then if getPlayerFromName(nev) then setElementData(getPlayerFromName(nev), \"adminlevel\", szint) outputChatBox (\"#00007F[bL] #FFFFFFÁtálitotta valaki az admin szinted \"..szint..\" számura!\",getPlayerFromName(nev),255,255,255,true) else outputChatBox(\"#00007F[bL] #FFFFFFNincs ilyen játékos!\", source) end else outputChatBox(\"#00007F[bL] #FFFFFFHasználat: /setadmin [Játékos] [szint]\", source) end elseif adminrang <= 7 and adminduty == 0 then outputChatBox(\"#00007F[bL] #FFFFFFNem vagy adminszolgálatban!\", source,255,255,255, true) elseif adminrang == 0 then outputChatBox(\"#00007F[bL] #FFFFFFNem vagy ADMIN!\",source,255,255,255,true) end end )----function adminNick (source, commandName, nick)if nick thenif adminrang <= 1 and adminduty == 1 thensetElementData (source, \"adminNick\", nick)outputChatBox (\"#00007F[bL] #FFFFFFAz admin neved mostantól \"..nick..\" lesz!\",source,255,255,255, true)elseif adminrang <= 1 and adminduty == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFElöször lépj adminszolgálatba!\",source,255,255,255, true)elseif adminrang == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFNem vagy admin \",source,255,255,255, true)endelseoutputChatBox (\"#00007F[bL] #FFFFFFIsmeretlen hiba! \",source,255,255,255, true)endendaddCommandHandler (\"adminnickchange\",adminNick)addCommandHandler (\"anickchange\",adminNick)addCommandHandler (\"anickc\",adminNick)addCommandHandler (\"anc\",adminNick)addCommandHandler (\"setadminnick\",adminNick)addCommandHandler (\"setanick\",adminNick)addCommandHandler (\"setan\",adminNick)addCommandHandler (\"stan\",adminNick)----function adminDuty (source)playername = getPlayerName (source)aNick = getElementData(source, \"adminNick\")if adminrang <=1 and adminduty == 1 thensetPlayerName (source, playername)setElementData (source, \"adminduty\", 0)outputChatBox (\"#00007F[bL] #FFFFFF\"..aNick..\" kilépett az adminszolgálatból! \",255,255,255, true)elseif adminrang <=1 and adminduty == 0 thensetPlayerName (source, aNick)setElementData (source, \"adminduty\", 1)outputChatBox (\"#00007F[bL] #FFFFFF\"..aNick..\" belépett az adminszolgálatba! \",255,255,255, true)elseif adminrang == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFNem vagy admin \",thePlayer,255,255,255, true)endendaddCommandHandler (\"adminduty\",adminDuty)addCommandHandler (\"aduty\",adminDuty)---- AS parancsokfunction createVehicle (command, carID) adminduty = getElementData (player, \"adminduty\")if carID thenif adminrang <= 1 and adminduty == 1 thencreateVehicle()outputChatBox (\"#00007F[bL] #FFFFFFSikeresen lehívtál egy kocsit! \",thePlayer,255,255,255, true)elseif adminrang == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFNem vagy admin! \",thePlayer,255,255,255, true)elseif adminrang <= 1 and adminduty == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFElöször lépj adminszolgálatba! \",thePlayer,255,255,255, true)endelseoutputChatBox (\"#00007F[bL] #FFFFFFIsmeretlen Hiba! \",thePlayer,255,255,255, true)endendaddCommandHandler (\"cVehicle\",createVehicle)----function afelhivas (command, text) if (text) thenif adminrang <=1 and adminduty == 1 thenoutputChatBox (\"#00007F[bL] #FFFFFFSikeresen kiirtál egy felhívást! \",thePlayer,255,255,255, true)outputChatBox (\"#00007F[bL] #FFFFFF\"..playername..\" : \"..text,255,255,255, true)elseif adminrang == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFNem vagy admin! \",255,255,255, true)elseif adminrang <= 1 and adminduty == 0 thenoutputChatBox (\"#00007F[bL] #FFFFFFElöször lépj adminszolgálatba! \",thePlayer,255,255,255, true)endoutputChatBox (\"#00007F[bL] #FFFFFFIsmeretlen Hiba! \",thePlayer,255,255,255, true)endendaddCommandHandler (\"aFelhivas\",afelhivas) ---- A1 parancsok
if adminrang <= 7 and adminduty == 1 then
adminrang = getElementData(source, \"adminlevel\")adminduty = getElementData(source, \"adminduty\")