Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. Keep minimizing or maximizing the X coordinate until you get it
  2. PaiN^

    hi guyz

    viewtopic.php?f=148&t=40809
  3. PaiN^

    SOLVED!

    I don't think logging out kick you of the team ( Unless you have a script to do that ! ) .. + Solidsnake's code works perfectly !
  4. Did you add the acl.xml file while the server running ? If so, Then you must shut it down first, Add the acl.xml file, Then start the server ...
  5. Remember ! When modifing acl.xml you must shutdown your server, A restart wont do ..!
  6. It's from your acl.xml Admin resource is not added to the admin group or there are missing rights in the ACL admin
  7. PaiN^

    ban a region.

    banPlayer not kickPlayer, And must add it to the admin group in acl.xml ..
  8. PaiN^

    label button

    guiBringToFront ?? Explain more
  9. ! حرام عليك والله اني مسويه بنفسي + كلامك صح -- server -- addEventHandler ( 'onPlayerLogin', root, function ( _,acc ) local accName = getAccountName ( acc ) if isObjectInACLGroup ( 'user.'..accName, aclGetGroup ( 'Admin' ) ) then setElementData ( source, 'allowed', true ) end end ) addEventHandler ( 'onPlayerLogout', root, function ( ) setElementData ( source, 'allowed', false ) end )
  10. -- server -- addEventHandler ( 'onResourceStart', resourceRoot, function ( ) local players = getElementsByType ( 'player' ) for i,v in ipairs (players) do local acc = getAccountName ( getPlayerAccount ( v ) ) if isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( 'Admin' ) ) then setElementData ( v, 'allowed', true ) end end end ) -- client -- Key = 'زر فتح النافذة' bindKey ( Key, 'down', function ( ) if getElementData ( localPlayer, 'allowed' ) == true then local visible = guiGetVisible ( النافذة ) guiSetVisible ( النافذة, not visible ) showCursor ( visible ) end end )
  11. فنكشنات هو مسويها, مو فنكشنات معرفة من اللعبة setSQL_Data و UpDateListInSql لآ, لآن
  12. في ارجمنت الوقت بعد السبب, اقرأ الويكي وتلقاه
  13. لا, انت بس تخلي على زر واحد, هو يبي اي زر بالسيرفر
  14. PaiN^

    help

    You're welcome
  15. PaiN^

    help

    Show cursor ( client side ) have only one argument ( bool ), And you can use onClientPlayerJoin instead of using a trigger ..
  16. PaiN^

    SQL

    Not tested ! -- Server -- function obtenerInfo( ) local gang = getElementData( source, "Gang") local infoGang = executeSQLQuery ( "SELECT infoGang FROM gangsName WHERE Nombre = ?", gangName ) triggerClientEvent( "onOpenInfo", source, unpack(infoGang)) end addEvent("onOpen", true) addEventHandler("onOpen", root, obtenerInfo) -- Client -- function abrir3( infoGang ) guiSetVisible(infoWindow, true) guiSetVisible(gangWindow, false) guiSetText(infoMemo, tostring(infoGang)) end addEvent("onOpenInfo", true) addEventHandler("onOpenInfo", root, abrir3) function abrir2() triggerServerEvent("onOpen", localPlayer ) end
  17. PaiN^

    PlaySound3D

    Will if you want the sound to be in the vehicle, Use attachElements ..
  18. PaiN^

    PlaySound3D

    This should work : -- Client : addEvent ( 'sound', true ) addEventHandler ( 'sound', root, function ( ) local song = playSound3D("Diskoparty.mp3", -2758, 968, 54, true) setSoundVolume ( song, 100 ) setSoundMinDistance ( song, 100 ) outputChatBox(":D") end ) -- Server : addEventHandler ( 'onResourceStart', resourceRoot, function ( player ) local x, y, z = getElementPosition ( player ) triggerClientEvent ( 'sound', player, x, y, z ) end )
  19. PaiN^

    PlaySound3D

    Trigger the client event from the server, And send the coordinates as arguments ..
  20. You're destroying the source which is the localPlayer, You should use getPedOccupiedVehicle to get his current vehicle ..
  21. viewtopic.php?f=148&t=40809
×
×
  • Create New...