Jump to content

Zie[E]D_)"U.R

Members
  • Posts

    12
  • Joined

  • Last visited

Details

  • Gang
    gta-ar
  • Location
    tunisia
  • Occupation
    finance master

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Zie[E]D_)"U.R's Achievements

Square

Square (6/54)

0

Reputation

  1. Hey guys i was trying to make a script that play music and display picture when a console logs in (for everyone) i tried to use IsObjectInAclGroup , DXDrawImage and playsound but somehow i couldnt link them together , can anyone help ?
  2. Hello guys , i have another small problem .. i belive it can be fixed . when i logout from console account then login to my moderator account all the buttons and commands in the admin panel are on and clickable (means that even with my moderator account i still have console privileges.) any ways to fix this ? or auto refresh admin panel when i switch accounts ?
  3. Hey Guys i have a problem in admin panel , wich is : every Acl group have access to some things that they dont have the right to access to ! for example , a moderator can add objects and remove objects in ACL (a moderator can easly remove a console account) i verified Acl rights on Acl.xml this is for moderator group <right name="function.aclGroupAddObject" access="false"></right> how can i fix it ???
  4. i have forgotten but the last thing i did was downloading gui editor and trying to make button and assign them to their commands , so i pretty much created just the "look" wich is this , i just can't figure out how to assign commands to each button GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(518, 105, 319, 501, "VIP PANEL BY ZIED FERAH", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.63) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF07D8F8") GUIEditor.button[1] = guiCreateButton(22, 51, 261, 55, "Open weapon shop", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF4FD01") GUIEditor.button[2] = guiCreateButton(24, 150, 259, 65, "Reset Health ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") GUIEditor.button[3] = guiCreateButton(24, 150, 259, 65, "Reset Health ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFD0000") GUIEditor.window[2] = guiCreateWindow(518, 105, 319, 501, "VIP PANEL BY ZIED FERAH", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetAlpha(GUIEditor.window[2], 0.63) guiSetProperty(GUIEditor.window[2], "CaptionColour", "FF07D8F8") GUIEditor.button[4] = guiCreateButton(22, 51, 261, 55, "Open weapon shop", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF4FD01") GUIEditor.button[5] = guiCreateButton(24, 150, 259, 65, "Reset Health ", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFD0000") GUIEditor.button[6] = guiCreateButton(24, 150, 259, 65, "Reset Health (cost 2000g)", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFD0000") GUIEditor.button[7] = guiCreateButton(96, 326, 120, 31, "exit", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.memo[1] = guiCreateMemo(27, 367, 266, 124, "Additional Info : \n\n/shout <player> <msg> : pm player\n/pause : to pause game\n/unpause : to resume game", false, GUIEditor.window[2]) end )
  5. Hello again ^^ excuse me for my lack of knowledge of such things , but im learning step by step ^^ i have a list of commands that i want to put them in 1 single window . let me explain , for example instead of remembering /command1 , /command2 , /command3 i want to make 1 command that will bring me a window with 3 buttons (button 1 to execute command 1 and so on....) i tried many scripts but i never reached my goal , so can anyone help me
  6. everything looks fine ! maybe the scripts are wrong (remember , it is a vip only resource and +15 health every 5 seconds) this is what i have done so far : acl.xml <group name="VIP"> <acl name="VIP"></acl> <object name="user.ziedur"></object> health.lua ( i tried Rose , N98E and kokos500 with the fixed getplayerName ) For Rose's script when i logged in with my VIP accounts i got the output health regen in my chat box but no health is generated for kokos500 : meta.xml <meta> <info author="TimmY14" version="1.0.0" type="script" name="healthregeneration" description="hp regen" /> <script src="health.lua" type="server" /> </meta>
  7. none of them works .. im sure they are right , but i think something is missing in the resource file ? this is my meta file , is something wrong in it ? <meta> <info author="TimmY14" version="1.0.0" type="script" name="healthregeneration" description="hp regen" /> <script src="health.lua" type="server" /> </meta>
  8. it didn't work guys any alternative solutions
  9. Hello guys i will try to go straight to the point this is a health regeneration over time script (this is not mine , full credit goes to the maker) setTimer( function () setElementHealth ( localPlayer, ( getElementHealth ( localPlayer ) + 15 ) ) end,5000,0) function autor() outputChatBox("health regen", source, 0, 255, 255, true) end addEventHandler("onClientPlayerJoin", getRootElement(), autor) i want this lua cript to be operational for "VIP" group (for example) only . means , only players with VIP can have their health regenerated . what should i add to make it that way ? thank you . these are some things i tried for myself . (but didn't work) in acl.xml under group VIP <object name="resource.healthregeneration"></object> under acl VIP access="true"></right> <right name="resource.healthregeneration" under all Acls access="false"></right> <right name="resource.healthregeneration"
  10. Update : i added this in the resource script addEventHandler("onClientPlayerJoin", getRootElement(), autor, true) i also added this in the acl.xml under each group acl <right name="resource.healthregeneration" access="false"></right> and i added this under VIP acl <right name="resource.healthregeneration" access="true"></right> still didnt work !
  11. Hello i hope i am posting this in the correct section . i am new when it comes to scripting etc .. i have recently created a server and i had a few problems concerning assigning specific resources to a specific Group . Let me explain : i have created a new group via ACL.xml named VIP i wanted to assign a health regeneration resource to that group (only to that group) it is a resource that imply allows you to renegrate lost health over time . and this is what i wrote : <group name="V.I.P"> <object name="resource.healthregeneration"></object> <object name="user.example"></object> </group> i also added the resource on mtaserver.conf (i dont know if it is obivous , lol) but it appears that everyone has their health regenerated (guest/ admin etc) ! not only VIP group any help ? please give me an explanation that a simple mind can bear i am not that pro at programming (still learning) thank you in advance :).
×
×
  • Create New...