Jump to content

DiGiTal

Members
  • Posts

    277
  • Joined

  • Last visited

Everything posted by DiGiTal

  1. HI, i'm a scripter and Designer .I'm working for a project from a long time and soon it will be published . it's a MULTI game mode server ( RPG,RACE,FUN,DD,DM AND MORE) with modern functions for that i need a partner who can help me (need a ACTIVE partner , SERUIS, LOYAL ) contact me at: skype:ogg4r_fr discord: DigiTaL#4392 PM (if you don't have discord and skype) PS: -Don't hesite to say your experience -if i'm interested by your skills you can a" % "in the project .
  2. @sebaxx its leaked scripts. you should learn scripting.Draw your way to the goal.
  3. <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="resource.admin" /> <object name="resource.webadmin" /> <object name="user.Ransom" /> <object name="resource.ScriptName" /> -------- مع هده يمكن الكيك و البان </group> انتقل إلى "اسل" ثم إضافة البرنامج النصي إلى الادمين @*RayaN-Alharbi.
  4. أعطيت الحق admin?
  5. Hello, I'm simple scripter lua mtasa and designer .Enjoy my first tutorial (any question reply it or suggestion, i'll do a list of tutorials ) Variables(type): *Global variables: means the variable will be avaible on hole of the script for example: Code: function test() name = 123 jake = "me" end function test() name = 123 jake = "me" end function test1() print(name)--- returns 123 print(jake)------returns me end the ----- it's a advert can't cause anything to the code print it's for to output a string or else. or (because as global variable it can be in the function or out.) Code: name = 123 jake = "me" functio test() ------your code end *Local variables: it will be avaible only on your function attached to. Code: function test() local name = 123 local jake = "me" end and if i do function test() local name = 123 local jake = "me" end function testt() print(jake) ----- return nil end If you saw Code: jake = "me" "me" called a string . *Key words and break do else elseif end false for if in local nil not repeat then return true or until while function *Function : The function is the way that describe your goal by a CODE . it likes Code: function NameOfYourFunction(arguments) -----YOUR CODE end The function end with "end" if you forgot it , your code wrong. *nil : it means nothing *boolean: it return true or false value *if : Is for to state "if" it ends with "end" as for function for ex: local var1=1 local var2=2 function name() if (var1+var2) == 3 then -----do somthing else -----do something else end end means if 2+1 = 3 then insert your code BUT if 2+1 ~= 3 then insert your code (xd) ~= means not equal == equal *operators: it's what your learned at school : (+,-,/,*,^) (I'll update it soon)
  6. if(accounts) and (type(accounts == "table")) then return #accounts end return false end I think here wrong. Type accounts =table
  7. Hi, BUG - the panel didn't open with the "b" bind and the /hedit ( gave rights(admin), set the name to hedit ...etc) the prevouis versions works fine but this last version ,it didn't work . Thanks
  8. Why he should use onclient render ? As i see in the wiki its only for drawing things ? Thanks @Fist
  9. and what about the server side script , can't secure?
  10. @Vuzimir what about "Meta.xml is empty" ?
  11. i didn't get it too . but if you want you can check (it's very simple to use and 100% secured)
  12. DiGiTal

    Help pls

    There is a error. Can i see acl
  13. DiGiTal

    no servers appear

    It arrived to me the last year Check your fairwall Check your internet if it still didnt work reply again
  14. @TorNix~|nRCan i know what is the wrong on the code?
  15. did you defined the screenW and screenH ???
  16. very good script THE BEST KEEP your Working !!!
  17. Did u saved it ? show me the part of the acl? explaine more if u can.
  18. Hi, You have to read this. https://forum.multitheftauto.com/topic/96776-tut-scaling-drawinggui-elements-for-all-resolutions/
  19. is your internet powerull? more 50kb ?
  20. DiGiTal

    help me

    Did this error spamming You? because me i see it when my pc bugged,as result i see that error
  21. Hi, when i click to a button for to spawn the car it will spawn after it will be destroyed. when i delete the destroy the player can Spam with spawning. i want once it's spawned he can't spawn again . addEvent("spawncar1",true) addEventHandler("spawncar1",getRootElement(), function() if not (isGuestAccount(getPlayerAccount(client))) then if not (isPedInVehicle(client)) then local x,y,z = getElementPosition(client) if (getElementData(client,"mycar1")) and (getElementData(client,"mycar1")~= nil) --[[and (getElementType(getElementData(client,"mycar1")) =="vehicle")]] then local vehicle = getElementData(client,"mycar1") outputChatBox("Vehicle destroyed",client) elseif not (getElementData(client,"mycar1")) then local account = getPlayerAccount(client) local name = getAccountName(account) local playercar = executeSQLQuery("SELECT Model,Paintjob,Color,Upgrade0,Upgrade1,Upgrade2,Upgrade3,Upgrade4,Upgrade5,Upgrade6,Upgrade7,Upgrade8,Upgrade9,Upgrade10,Upgrade11,Upgrade12,Upgrade13,Upgrade14,Upgrade15,Upgrade16 FROM carslot1 WHERE PlayerName = ?",name) if (playercar) then if #playercar > 0 then local x,y,z = getElementPosition(client) local vehicle = createVehicle(playercar[1].Model,x + 5,y +2,z) setVehiclePaintjob(vehicle,playercar[1].Paintjob) setElementData(vehicle,"vehicleOwner","mycar1") setElementData (vehicle,"mycar1",getPlayerName(source)) setElementData (client, "mycar1", vehicle) setElementData(vehicle,"VOwner",getPlayerName(client)) outputChatBox ("Car spawned.", source, 153,51,255) addVehicleUpgrade(vehicle, playercar[1].Upgrade0) addVehicleUpgrade(vehicle, playercar[1].Upgrade1) addVehicleUpgrade(vehicle, playercar[1].Upgrade2) addVehicleUpgrade(vehicle, playercar[1].Upgrade3) addVehicleUpgrade(vehicle, playercar[1].Upgrade4) addVehicleUpgrade(vehicle, playercar[1].Upgrade5) addVehicleUpgrade(vehicle, playercar[1].Upgrade6) addVehicleUpgrade(vehicle, playercar[1].Upgrade7) addVehicleUpgrade(vehicle, playercar[1].Upgrade8) addVehicleUpgrade(vehicle, playercar[1].Upgrade9) addVehicleUpgrade(vehicle, playercar[1].Upgrade10) addVehicleUpgrade(vehicle, playercar[1].Upgrade11) addVehicleUpgrade(vehicle, playercar[1].Upgrade12) addVehicleUpgrade(vehicle, playercar[1].Upgrade13) addVehicleUpgrade(vehicle, playercar[1].Upgrade14) addVehicleUpgrade(vehicle, playercar[1].Upgrade15) addVehicleUpgrade(vehicle, playercar[1].Upgrade16) local col1 = gettok (playercar[1].Color, 1, string.byte(',') ) local col2 = gettok (playercar[1].Color, 2, string.byte(',') ) local col3 = gettok (playercar[1].Color, 3, string.byte(',') ) local col4 = gettok (playercar[1].Color, 4, string.byte(',') ) local col5 = gettok (playercar[1].Color, 5, string.byte(',') ) local col6 = gettok (playercar[1].Color, 6, string.byte(',') ) outputChatBox(col1) if col1 then setVehicleColor(vehicle, tonumber(col1), tonumber(col2), tonumber(col3), tonumber(col4), tonumber(col5), tonumber(col6)) end else outputChatBox("You have not buy a car for this slot yet",client) end end end else outputChatBox("You need to get out of your vehicle first",client) end else outputChatBox("You need to log in first",client) end end)
  22. DiGiTal

    bindKey

    yea that is it will works.
×
×
  • Create New...