#Chris Posted July 2, 2019 Share Posted July 2, 2019 Sziasztok ez egy Adminjail script de valami baj lehet vele Quote jailx, jaily, jailz = 1516, -1462, 10 -- You can change to custom cordinates. jailInterior = 0 jailDimension = 0 releaseX, releaseY, releaseZ = 1546, -1675, 14 -- the release cordinates of the jail releaseInterior = 0-- The interior that they will be released to releaseDimension= 0 -- The dimension that they will be released to. function onPlayerJail(player,command,player2,timer,reason) timer = timer -- I just do this incase, for the timer function. local chat = outputChatBox -- Lets define "chat" to "outputChatBox" just to save some time prisoner = getPlayerFromName(player2) -- This will get the player who you wan tto jail. if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(""FoAdmin","SzuperAdmin","Fejleszto","Tulajdonos")) then if (timer) then if (prisoner) then -- if "player2" is a valid player then --- Here Is Where Most of the coding will take place. --- setElementPosition(prisoner,jailx, jaily, jailz) -- Take them to jail setElementInterior(prisoner,jailInterior) -- If they where in an interior, set them to your jails interior setElementDimension(prisoner,jailDimension) -- set them to the jail dimension (opsional) chat("#d75959[AdminJail]:#7cc576 "..getPlayerName(player).." #ffffffbebörtönözte#7cc576 "..player2.." #32b3ef"..timer.." #7cc576percre",root,255,0,0) chat("#d75959[AdminJail] #7cc576Indok:#ffffff"..reason,root,255,0,0) jailTimer = ( -- Set the timer, of the player to be released. function () chat("Jail: "..player2.." has been released from jail.",255,255,0) setElementPosition(prisoner,releaseX, releaseY, releaseZ)-- Set their position when they get released SetElementDimension(prisoner,releaseDimension) -- set they dimensioon to the release dimension setElementInterior(prisoner,releaseInterior) -- set their interior to the defined release interior ******* end, 1000, 1 ) -- Will convert the timer into miliseconds. ) -- End the timer function else chat("#d75959[AdminJail]:#7cc576 "..player2.."#ffffff Nem érvényes játékos",player,255,0,0) end else chat("#d75959[AdminJail]:#ffffff /"..command.." [NÉV] [IDŐ] [INDOK]",player,255,0,0) -- If they didn't enter a time, then outputChatBox that message. end else -- And if their not in the admin ACL chat("#d75959[AdminJail]:#ffffffTe nem vagy Admin!.",player,255,0,0) -- this is really going to do: outputChatBox("Jail: Your not an admin.",player,255,0,0) end end addCommandHandler("ajail",onPlayerJail) A piros csillag a hiba Link to comment
JokerPublic Posted July 25, 2019 Share Posted July 25, 2019 A 28. sor végéről szedd ki a zárójelet: ' )' Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now