Jump to content

Master_MTA

Members
  • Posts

    3,389
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by Master_MTA

  1. function consoleGiveJetPack ( thePlayer, commandName ) if ( not doesPedHaveJetPack ( thePlayer ) == true ) then local StatusGive = givePedJetPack ( thePlayer ) -- get a jetpack outputConsole ( "succ to give you jetpack.", thePlayer ) -- msg in console else local statusRemove = removePedJetPack ( thePlayer ) -- remove jetpack outputConsole ( "succ to remove your jetpack.", thePlayer ) -- msg in console end end addCommandHandler ( "jetpack", consoleGiveJetPack ) something like that انت تتحقق انه اعطاه الجيت باك وبكذا بيرجعلك بترو وبكذا صار ينفذ الجزء اللي فوق كذا لكن الان انا تحققت هل اللاعب ما معه جيت باك ولا لا لو معه راح يشيلها اللي هو else ولو ما معه راح ينفذ الجزء اللي فوق اللي هو فوق else
  2. show me your code with draw functions
  3. local selected = 1 local num=1 addEventHandler("onClientRender",root,function() master=master+1 if master==1000*5 then master=0 if selected>=10 then num=-1 end if selected<=0 then num=1 end selected=selected+num outputDebugString(selected) end end) what about somthing like that
  4. صراحه ما فهمت شي لكن بالتوفيق
  5. try this and tell me the result local selected = 1 local num=1 local master=0 tt=true addEventHandler("onClientRender",root,function() master=master+1 if tt=true then tt=false outputChatBox(master) end if master=1000*5 then outputChatBox('done') master=0 if selected>=10 then num=-1 end if selected<=0 then num=1 end selected=selected+num outputDebugString(selected) end end)
  6. https://e.top4top.net/m_57407y9m1.mp4 شوفوه وادعولي اذا ضحكتو ودي اسوي لبعض الناس كذا @N3xT @iMr.WiFi..! @Abdul KariM @</Mr.Tn6eL>
  7. try this local selected = 1 local num=1 local master=0 addEventHandler("onClientRender",root,function() master=master+1 if master=1000*5 then master=0 if selected>=10 then num=-1 end if selected<=0 then num=1 end selected=selected+num outputDebugString(selected) end end)
  8. i am didn't finished it yet but i am created dxdrawParallelogram function dxdrawParallelogram(x,y,x1,y1,color,postgui) dxDrawRectangle(x, y, x1,y1,color, postgui) local m=0 for i=y,y+y1 do m=m+1 if i~=y+y1 and i~=y and i~=(y+y1)/2 then dxDrawRectangle((x-m)-1, i, x1,1,color, postgui) end end end izi way
  9. hmm am acutely will not use dxDrawLine i will use dxDrawRectangle only new idea v
  10. am acutely try it before and it doesn't work
  11. doesn't work am trying to create my own function to create roundedrectangle without shader and without dxDrawLines if it worked i will share it here thx for all
  12. you should show us your sql script
  13. name = guiCreateMemo(0.05, 0.09, 0.75, 0.11, "Enter account name", false, window) to name = guiCreateMemo(0.05, 0.09, 0.75, 0.11, "Enter account name", true, window)
  14. thx but i wanna use dxdrawLine +_+ i am try to create my own dxlib so i am gonna use the mta official functions without any thing else like photo it's not like i want i wanna create radius in the corner like my photo
  15. so the wrong is from client side you should make sure that you enter the right account name
  16. am so sorry i forgot it edit this local client=getAccountPlayer(clientname) to this local client=getAccountPlayer(getAccount(clientname))
  17. sorry i didn't see the photo till now u should edit it like that function addGroup(clientname, group) local client=getAccountPlayer(clientname) if client then local playerToAdd = getPlayerAccount(client) if not exports.Qacl:isPlayerInGroup(playerToAdd, group)then exports.Qacl:addAccountToGroup(playerToAdd,group) exports.Qcommands:sendMessage("You've been added to: " ..group.. "!", 0, 150, 0, client) end end end addEvent("addPlayerToGroup", true) addEventHandler("addPlayerToGroup", resourceRoot, addGroup)
×
×
  • Create New...