Advertisement
NanoBob

FGN admin panel

Mar 15th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.47 KB | None | 0 0
  1. spawnAcceses={
  2. "Access.Military",
  3. "Access.SpecOps",
  4. "Access.OWM",
  5. "Access.CDFBoss",
  6. "Access.CDFSold",
  7. "Access.CDFCorp",
  8. "Access.CDFAsso",
  9. "Access.SpecFo",
  10. "Access.General",
  11. "Access.president",
  12. "Access.vpresident",
  13. "Access.ministers",
  14. "Access.secretagent",
  15. }
  16.  
  17. function DrawFGNAdminPanel()
  18. if FGNAdminPanelGUI==nil then
  19. FGNAdminPanelGUI=guiCreateWindow(0.3,0.25,0.4,0.5,"FGN Admin panel",true)
  20. guiWindowSetMovable(FGNAdminPanelGUI,false)
  21. guiWindowSetSizable(FGNAdminPanelGUI,false)
  22. --List of players
  23. PlayersGridList=guiCreateGridList(0.05,0.05,0.3,0.8,true,FGNAdminPanelGUI)
  24. PlayersCollumn=guiGridListAddColumn(PlayersGridList,"Players",0.9)
  25. AllPlayers=getElementsByType("player")
  26. for key,Player in ipairs (AllPlayers) do
  27. nextRow=guiGridListAddRow(PlayersGridList)
  28. guiGridListSetItemText(PlayersGridList,nextRow,1,getPlayerName(Player),false,false)
  29. end
  30. --Buttons
  31. refreshPlayerListButton=guiCreateButton(0.05,0.85,0.3,0.1,"Refresh",true,FGNAdminPanelGUI)
  32.  
  33. wantedLevelButton=guiCreateButton(0.4,0.05,0.20, 0.08,"Set Wanted",true,FGNAdminPanelGUI)  
  34. spawnsAcces=guiCreateButton(0.4,0.15,0.20,0.08,"Spawn Acces",true,FGNAdminPanelGUI)
  35. moneyButton=guiCreateButton(0.4,0.25,0.20,0.08,"Money",true,FGNAdminPanelGUI)      
  36. adminJailButton=guiCreateButton(0.4,0.35,0.20,0.08,"Admin Jail",true,FGNAdminPanelGUI) 
  37. respawnVehicles=guiCreateButton(0.4,0.45,0.20,0.08,"Respawn Vehicles",true,FGNAdminPanelGUI)
  38. OtherGroupsButton=guiCreateButton(0.4,0.55,0.20,0.08,"NYI",true,FGNAdminPanelGUI)
  39. activeButton = guiCreateButton(0.4, 0.65, 0.20,0.08, "Toggle active admin (self)", true, FGNAdminPanelGUI)
  40. AdminMsgButton = guiCreateButton(0.4, 0.75, 0.20,0.08, "Admin Message", true, FGNAdminPanelGUI)
  41. sendAdminMessage = guiCreateButton(0.4, 0.85, 0.20,0.08, "Send personal admin message", true, FGNAdminPanelGUI)
  42.        
  43. --Handles all the clicks
  44. function FGNAdminPanelButtonClicked()
  45. selectedPlayer=getPlayerFromName(guiGridListGetItemText(PlayersGridList,guiGridListGetSelectedItem(PlayersGridList),1))
  46. if source==wantedLevelButton then --Wanted level
  47. if wantedLevelGUIWindow==nil then -- If the panel does not yet exist, create it
  48. wantedLevelGUIWindow=guiCreateWindow(0.7,0.25,0.2,0.15,"Wanted Level Options",true)
  49. wantedLevel0=guiCreateRadioButton(0.5,0.3,0.2,0.1,"0",true,wantedLevelGUIWindow)
  50. wantedLevel1=guiCreateRadioButton(0.3,0.1,0.2,0.1,"1",true,wantedLevelGUIWindow)
  51. wantedLevel2=guiCreateRadioButton(0.3,0.3,0.2,0.1,"2",true,wantedLevelGUIWindow)
  52. wantedLevel3=guiCreateRadioButton(0.3,0.5,0.2,0.1,"3",true,wantedLevelGUIWindow)
  53. wantedLevel4=guiCreateRadioButton(0.7,0.1,0.2,0.1,"4",true,wantedLevelGUIWindow)
  54. wantedLevel5=guiCreateRadioButton(0.7,0.3,0.2,0.1,"5",true,wantedLevelGUIWindow)
  55. wantedLevel6=guiCreateRadioButton(0.7,0.5,0.2,0.1,"6",true,wantedLevelGUIWindow)
  56. confirmWantedLevelButton=guiCreateButton(0.25,0.6,0.5,0.4,"Confirm",true,wantedLevelGUIWindow)
  57. guiWindowSetMovable(wantedLevelGUIWindow,false)
  58. guiWindowSetSizable(wantedLevelGUIWindow,false)
  59. guiSetVisible(wantedLevelGUIWindow,false)
  60. end
  61. if guiGetVisible(wantedLevelGUIWindow)==false then
  62. guiSetVisible(wantedLevelGUIWindow,true)
  63. elseif guiGetVisible(wantedLevelGUIWindow)==true then
  64. guiSetVisible(wantedLevelGUIWindow,false)
  65. end
  66. elseif source==refreshPlayerListButton then
  67. guiGridListClear(PlayersGridList)
  68. AllPlayers=getElementsByType("player")
  69. for key,Player in ipairs (AllPlayers) do
  70. nextRow=guiGridListAddRow(PlayersGridList)
  71. guiGridListSetItemText(PlayersGridList,nextRow,1,getPlayerName(Player),false,false)
  72. end
  73. elseif source==confirmWantedLevelButton then --Sets the wanted level
  74.                 if selectedPlayer~=false then --If there is a player selected
  75.                     if guiRadioButtonGetSelected(wantedLevel0) then
  76.                         wantedStars=0
  77.                         wantedLevel=0
  78.                     elseif guiRadioButtonGetSelected(wantedLevel1) then
  79.                         wantedStars=1
  80.                         wantedLevel=20
  81.                     elseif guiRadioButtonGetSelected(wantedLevel2) then
  82.                         wantedStars=2
  83.                         wantedLevel=60
  84.                     elseif guiRadioButtonGetSelected(wantedLevel3) then
  85.                         wantedStars=3
  86.                         wantedLevel=100
  87.                     elseif guiRadioButtonGetSelected(wantedLevel4) then
  88.                         wantedStars=4
  89.                         wantedLevel=160
  90.                     elseif guiRadioButtonGetSelected(wantedLevel5) then
  91.                         wantedStars=5
  92.                         wantedLevel=240
  93.                     elseif guiRadioButtonGetSelected(wantedLevel6) then
  94.                         wantedStars=6
  95.                         wantedLevel=400
  96.                     end
  97.                     triggerServerEvent("setPlayerWanted",getRootElement(),selectedPlayer,wantedLevel)          
  98.                     triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." set "..getPlayerName(selectedPlayer).."'s wanted level to "..wantedStars)
  99.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(), "*ADMIN* " ..getPlayerName(selectedPlayer).."'s wanted level was changed to "..wantedStars.." *ADMIN*")
  100.                 end            
  101.             elseif source==adminJailButton then
  102.                 if selectedPlayer~=false and selectedPlayer~=0 then
  103.                     setElementData(selectedPlayer,"wantedStars",10,true)
  104.                     setElementData(selectedPlayer,"wantedLevel",400,true)
  105.                     triggerServerEvent("arrestPlayerEvent",selectedPlayer,selectedPlayer,getLocalPlayer(),wantedStars,true)
  106.                     triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." Has adminjailed "..getPlayerName(selectedPlayer) )
  107.                 end
  108.             elseif source==respawnVehicles then
  109.                 triggerServerEvent("ToggleVehicleRespawn",getRootElement())
  110.             elseif source==activeButton then
  111.                 if getElementData(getLocalPlayer(),"ActiveAdmin")==true then
  112.                     setElementData(getLocalPlayer(),"ActiveAdmin",false,true)
  113.                 else
  114.                     setElementData(getLocalPlayer(),"ActiveAdmin",true,true)
  115.                 end        
  116.                 triggerServerEvent("UpdateOnlineAdminsServer",getRootElement())
  117.             elseif source==spawnsAcces then
  118.                 if spawnAccesWindow==nil then
  119.                     spawnAccesWindow=guiCreateWindow(0.7,0.4,0.2,0.2,"Spawn Access editor",true)
  120.                     AccesGridList=guiCreateGridList(0.05,0.1,0.5,0.8,true,spawnAccesWindow)
  121.                         SpawnCollum=guiGridListAddColumn(AccesGridList,"Spawns",0.85)
  122.                         for id,accesName in ipairs(spawnAcceses) do
  123.                             row=guiGridListAddRow(AccesGridList)
  124.                             guiGridListSetItemText(AccesGridList,row,SpawnCollum,accesName,false,false)
  125.                         end                    
  126.                     trueOrFalseGridList=guiCreateGridList(0.55,0.1,0.2,0.8,true,spawnAccesWindow)
  127.                         TrueOrFalseGridListCollumn=guiGridListAddColumn(trueOrFalseGridList,"Value",0.5)
  128.                         row=guiGridListAddRow(trueOrFalseGridList)
  129.                         guiGridListSetItemText(trueOrFalseGridList,row,TrueOrFalseGridListCollumn,"true",false,false)
  130.                         row=guiGridListAddRow(trueOrFalseGridList)
  131.                         guiGridListSetItemText(trueOrFalseGridList,row,TrueOrFalseGridListCollumn,"false",false,false)
  132.                    
  133.                     confirmSpawnAccesButton=guiCreateButton(0.75,0.8,0.2,0.1,"Confirm",true,spawnAccesWindow)
  134.                    
  135.                     guiSetVisible(spawnAccesWindow,false)
  136.                 end
  137.                 if guiGetVisible(spawnAccesWindow)==false then
  138.                     guiSetVisible(spawnAccesWindow,true)
  139.                 elseif guiGetVisible(spawnAccesWindow)==true then
  140.                     guiSetVisible(spawnAccesWindow,false)
  141.                 end
  142.             elseif source==confirmSpawnAccesButton then
  143.                 spawnAccesName=guiGridListGetItemText(AccesGridList,guiGridListGetSelectedItem(AccesGridList),SpawnCollum)
  144.                 if guiGridListGetItemText(trueOrFalseGridList,guiGridListGetSelectedItem(trueOrFalseGridList),TrueOrFalseGridListCollumn) =="true" then
  145.                     setData=setElementData(selectedPlayer,spawnAccesName,true,true)
  146.                     if setData then
  147.                         triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." set "..getPlayerName(selectedPlayer).."'s "..spawnAccesName.." to true" )
  148.                         outputChatBox("The Access of "..spawnAccesName.." for "..getPlayerName(selectedPlayer).." has been set to true.",200,200,200)                  
  149.                     elseif not setData then
  150.                         triggerServerEvent("setAcces",getRootElement(),selectedPlayer,spawnAccesName,false)
  151.                     end
  152.                 elseif guiGridListGetItemText(trueOrFalseGridList,guiGridListGetSelectedItem(trueOrFalseGridList),TrueOrFalseGridListCollumn) =="false" then
  153.                     setData=setElementData(selectedPlayer,spawnAccesName,false,true)
  154.                     if setData then
  155.                         triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." set "..getPlayerName(selectedPlayer).."'s "..spawnAccesName.." to false" )
  156.                         outputChatBox("The Access of "..spawnAccesName.." for "..getPlayerName(selectedPlayer).." has been set to false.",200,200,200)
  157.                     elseif not setData then
  158.                         triggerServerEvent("setAcces",getRootElement(),selectedPlayer,spawnAccesName,true)
  159.                     end
  160.                 else   
  161.                     outputChatBox("Double check your selections.",250,0,0,false)
  162.                 end
  163.             elseif source==moneyButton then
  164.                 if moneyPanelWindow==nil then
  165.                     moneyPanelWindow=guiCreateWindow(0.7,0.6,0.2,0.15,"Money settings",true)
  166.                     valueEdit=guiCreateEdit(0.05,0.4,0.4,0.2,"ammount",true,moneyPanelWindow)
  167.                     setMoneyButton=guiCreateButton(0.5,0.2,0.4,0.2,"set",true,moneyPanelWindow)
  168.                     takeMoneyButton=guiCreateButton(0.5,0.4,0.4,0.2,"take",true,moneyPanelWindow)
  169.                     giveMoneyButton=guiCreateButton(0.5,0.6,0.4,0.2,"give",true,moneyPanelWindow)
  170.                     guiSetVisible(moneyPanelWindow,false)
  171.                 end
  172.                 if guiGetVisible(moneyPanelWindow)==false then
  173.                     guiSetVisible(moneyPanelWindow,true)
  174.                 elseif guiGetVisible(moneyPanelWindow)==true then
  175.                     guiSetVisible(moneyPanelWindow,false)
  176.                 end
  177.             elseif source==setMoneyButton then
  178.                 moneyChange=setElementData(selectedPlayer,"FGNMoney",tonumber(guiGetText(valueEdit)))
  179.                 if moneyChange then outputChatBox("Money changed succesfully",100,200,100) end
  180.                 triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." Has set "..getPlayerName(selectedPlayer).."'s money to "..guiGetText(valueEdit))
  181.             elseif source==takeMoneyButton then
  182.                 moneyChange=setElementData(selectedPlayer,"FGNMoney",getElementData(selectedPlayer,"FGNMoney")-tonumber(guiGetText(valueEdit)))
  183.                 if moneyChange then outputChatBox("Money taken succesfully",100,200,100) end
  184.                 triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." Has taken "..guiGetText(valueEdit).." dollars from "..getPlayerName(selectedPlayer))
  185.             elseif source==giveMoneyButton then
  186.                 moneyChange=setElementData(selectedPlayer,"FGNMoney",getElementData(selectedPlayer,"FGNMoney")+tonumber(guiGetText(valueEdit)))
  187.                 if moneyChange then outputChatBox("Money given succesfully",100,200,100) end
  188.                 triggerServerEvent("createServerLog",getRootElement(),"(ADMIN)"..getPlayerName(getLocalPlayer()).." Has given "..guiGetText(valueEdit).." dollars to "..getPlayerName(selectedPlayer))
  189.             elseif source==AdminMsgButton then -- Admin Msg button
  190.                 if AdminMsgGUIWindow==nil then -- If the panel does not yet exist, create it
  191.                     AdminMsgGUIWindow=guiCreateWindow(0.5,0.75,0.2,0.2,"Admin Message Options",true)
  192.                     AdminMsg1=guiCreateRadioButton(0.1,0.15,0.4,0.1,"Language",true,AdminMsgGUIWindow)
  193.                     AdminMsg2=guiCreateRadioButton(0.1,0.35,0.4,0.1,"F1 Rules",true,AdminMsgGUIWindow)
  194.                     AdminMsg3=guiCreateRadioButton(0.1,0.55,0.4,0.1,"Deathmatching",true,AdminMsgGUIWindow)
  195.                     AdminMsg4=guiCreateRadioButton(0.6,0.15,0.4,0.1,"Wanted level",true,AdminMsgGUIWindow)
  196.                     AdminMsg5=guiCreateRadioButton(0.6,0.35,0.4,0.1,"not following F1",true,AdminMsgGUIWindow)
  197.                     AdminMsg6=guiCreateRadioButton(0.6,0.55,0.4,0.1,"different:",true,AdminMsgGUIWindow)
  198.                     confirmAdminMsgButton=guiCreateButton(0.2,0.7,0.5,0.4,"Confirm",true,AdminMsgGUIWindow)
  199.                     guiWindowSetMovable(AdminMsgGUIWindow,false)
  200.                     guiWindowSetSizable(AdminMsgGUIWindow,false)
  201.                     guiSetVisible(AdminMsgGUIWindow,false)
  202.                 end
  203.                 if guiGetVisible(AdminMsgGUIWindow)==false then
  204.                     guiSetVisible(AdminMsgGUIWindow,true)
  205.                 elseif guiGetVisible(AdminMsgGUIWindow)==true then
  206.                     guiSetVisible(AdminMsgGUIWindow,false)
  207.                     if AdminMsg2GUIWindow~=nil then
  208.                         guiSetVisible(AdminMsg2GUIWindow,false)
  209.                     end
  210.                 end
  211.             elseif source==confirmAdminMsgButton or source==AdminMsg6 then
  212.                 if guiRadioButtonGetSelected(AdminMsg1) then
  213.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* Only English in Mainchat! *ADMIN*")
  214.                 elseif guiRadioButtonGetSelected(AdminMsg2) then
  215.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* You can use F1 to find the rules and information! *ADMIN*") 
  216.                 elseif guiRadioButtonGetSelected(AdminMsg3) then
  217.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* Killing people for no reason is against the rules, *ADMIN*")
  218.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* doing it will result in punishment! *ADMIN*")
  219.                 elseif guiRadioButtonGetSelected(AdminMsg4) then
  220.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* A player's wanted level is indicated by the number, *ADMIN*")
  221.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* in brackets behind their nametag. *ADMIN*")
  222.                 elseif guiRadioButtonGetSelected(AdminMsg5) then
  223.                     triggerServerEvent("outputTopBarMessage",getLocalPlayer(),"*ADMIN* Breaking our F1 rules will result in a punishment and can end up in a ban! *ADMIN*")
  224.                 elseif guiRadioButtonGetSelected(AdminMsg6) then
  225.                     if AdminMsg2GUIWindow==nil then
  226.                         AdminMsg2GUIWindow=guiCreateWindow(0.7,0.75,0.2,0.2,"Put here your Message",true)
  227.                         confirmAdminMsg6Button=guiCreateButton(0.2,0.7,0.5,0.4,"Confirm",true,AdminMsg2GUIWindow)
  228.                         AdminMsg6Memo=guiCreateEdit(0.05,0.25,0.9,0.2,"Your message here....",true,AdminMsg2GUIWindow)
  229.                     end
  230.                     if guiGetVisible(AdminMsg2GUIWindow)==false then
  231.                         guiSetVisible(AdminMsg2GUIWindow,true)
  232.                     else
  233.                         guiSetVisible(AdminMsg2GUIWindow,false)
  234.                     end
  235.                 end
  236.             elseif source==confirmAdminMsg6Button then
  237.                 triggerServerEvent("outputTopBarMessage",getLocalPlayer(), "*ADMIN* " ..guiGetText(AdminMsg6Memo).. " *ADMIN*")
  238.             elseif source==sendAdminMessage then
  239.                 if adminMessageSendWindow==nil then
  240.                     adminMessageSendWindow=guiCreateWindow(0.3,0.75,0.2,0.2,"Send admin Message",true)
  241.                     confirmAdminMsessageButton=guiCreateButton(0.2,0.7,0.5,0.4,"Confirm",true,adminMessageSendWindow)
  242.                     AdminMessageMemo=guiCreateEdit(0.05,0.25,0.9,0.2,"Your message here....",true,adminMessageSendWindow)
  243.                 end
  244.                 if guiGetVisible(adminMessageSendWindow)==false then
  245.                     guiSetVisible(adminMessageSendWindow,true) 
  246.                 else
  247.                     guiSetVisible(adminMessageSendWindow,false)
  248.                 end
  249.             elseif source==confirmAdminMsessageButton then
  250.                 triggerServerEvent("sendPersonalAdminMessage",getLocalPlayer(),getLocalPlayer(),selectedPlayer,guiGetText(AdminMessageMemo))
  251.             end
  252.         end
  253.         addEventHandler("onClientGUIClick",getRootElement(),FGNAdminPanelButtonClicked)
  254.        
  255.         guiSetVisible(FGNAdminPanelGUI,false)
  256.     end
  257.     if guiGetVisible(FGNAdminPanelGUI)==false then
  258.         guiSetVisible(FGNAdminPanelGUI,true)
  259.         showCursor(true)
  260.     elseif guiGetVisible(FGNAdminPanelGUI)==true then
  261.         guiSetVisible(FGNAdminPanelGUI,false)
  262.         if wantedLevelGUIWindow~=nil then guiSetVisible(wantedLevelGUIWindow,false) end
  263.         if spawnAccesWindow~=nil then guiSetVisible(spawnAccesWindow,false) end
  264.         if moneyPanelWindow~=nil then guiSetVisible(moneyPanelWindow,false) end
  265.         if AdminMsgGUIWindow~=nil then guiSetVisible(AdminMsgGUIWindow,false) end
  266.         if AdminMsg2GUIWindow~=nil then guiSetVisible(AdminMsg2GUIWindow,false) end
  267.         if adminMessageSendWindow~=nil then guiSetVisible(adminMessageSendWindow,false) end
  268.         showCursor(false)
  269.     end
  270.     guiGridListClear(PlayersGridList)
  271.     AllPlayers=getElementsByType("player")
  272.     for key,Player in ipairs (AllPlayers) do
  273.         nextRow=guiGridListAddRow(PlayersGridList)
  274.         guiGridListSetItemText(PlayersGridList,nextRow,1,getPlayerName(Player),false,false)
  275.     end
  276. end
  277. addEvent("DrawFGNAdminPanel",true)
  278. addEventHandler("DrawFGNAdminPanel",getRootElement(),DrawFGNAdminPanel)
  279.  
  280. function setOnlineAdmins(message)
  281.     guiSetText(labelOnlineAdmins,message)  
  282. end
  283. addEvent("UpdateOnlineAdmins",true)
  284. addEventHandler("UpdateOnlineAdmins",getRootElement(),setOnlineAdmins)
  285.  
  286.  
  287. function createLabel()
  288.     labelOnlineAdmins = guiCreateLabel(0,0.9466,0.3799,0.0247,"",true)
  289.     guiLabelSetColor(labelOnlineAdmins,255,255,255)
  290.     guiLabelSetVerticalAlign(labelOnlineAdmins,"top")
  291.     guiLabelSetHorizontalAlign(labelOnlineAdmins,"left",true)
  292.     guiSetFont(labelOnlineAdmins,"default-bold-small")
  293. end
  294.  
  295. addEventHandler( "onClientResourceStart", getRootElement(), createLabel)
  296.  
  297.  
  298.    
  299. AdminMessageWindow = guiCreateWindow(0.1, 0.4, 0.2, 0.2, "Admin Message", true)
  300. guiWindowSetSizable(AdminMessageWindow, false)
  301. guiSetVisible(AdminMessageWindow,false)
  302. OkAdminButton = guiCreateButton(0.1, 0.85, 0.8, 0.1, "Ok!", true, AdminMessageWindow)
  303. guiSetProperty(OkAdminButton, "NormalTextColour", "FFAAAAAA")
  304. label1Admin = guiCreateLabel(0.1, 0.1, 0.8, 0.1, "The following admin sent you an admin message:", true, AdminMessageWindow)
  305. label2Admin = guiCreateLabel(0.4, 0.2, 0.2, 0.1, "Name here", true, AdminMessageWindow)
  306. memo1Admin = guiCreateMemo(0.1, 0.3, 0.8, 0.5, "", true, AdminMessageWindow)    
  307. guiMemoSetReadOnly(memo1Admin,true)    
  308.    
  309. function closeadminmsggui()
  310.     if source==OkAdminButton then
  311.     guiSetVisible(AdminMessageWindow,false)
  312.     showCursor(false)
  313.     end
  314. end
  315. addEventHandler("onClientGUIClick",OkAdminButton,closeadminmsggui)
  316.  
  317. addEvent("displayAdminPM",true)
  318. addEventHandler("displayAdminPM",getRootElement(),function(message)
  319.         guiSetVisible(AdminMessageWindow,true)
  320.         showCursor(true)
  321.         guiSetEnabled(OkAdminButton,false)
  322.         setTimer(guiSetEnabled,15000,1,OkAdminButton,true)
  323.         guiSetText(memo1Admin,message)
  324.         guiSetText(label2Admin,getPlayerName(source))
  325.     end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement