Jump to content

Chris!i!

Members
  • Posts

    213
  • Joined

  • Last visited

Everything posted by Chris!i!

  1. If yes then what functions do I use? I believe the stun is an animation and i'm not 100% sure if using getPedAnimation will return the animation name, cuz I don't have any1 to test this with on my local server
  2. Chris!i!

    BindKey

    you can add a command for it so people can bind the command with whatever key they are comfortable with in game using /bind key commandName addCommandHandler("inventory", inventory)
  3. Sikin = dgs:dgsCreateButton(9, 45, 257, 36, "Sikin", false, Wnd) Karakter = dgs:dgsCreateWindow(290, 268, 250, 283, "Karakter", false) dgs:dgsWindowSetMovable(Karakter, false) dgs:dgsWindowSetSizable(Karakter, false) dgs:dgsSetFont(Karakter, "default-bold") gridlist = dgs:dgsCreateGridList(9, 5, 231, 221, false, Karakter) dgs:dgsGridListAddColumn(gridlist, "Skin", 0.9) for i = 1, 2 do dgs:dgsGridListAddRow(gridlist) end dgs:dgsGridListSetItemText(gridlist, 0, 1, "bayan", false, false) dgs:dgsGridListSetItemText(gridlist, 1, 1, "-", false, false) Al = dgs:dgsCreateButton(9, 230, 55, 22, "Al", false, Karakter) Kapat = dgs:dgsCreateButton(74, 230, 55, 22, "Kapat", false, Karakter) dgs:dgsSetFont(Al, "default-bold") dgs:dgsSetFont(Kapat, "default-bold") function openKarakterWindow() guiSetVisible(Karakter , true) --showCursor(true) end addEventHandler ( "onClientGUIClick", Sikin , openKarakterWindow)
  4. Chris!i!

    BindKey

    explain more
  5. Chris!i!

    Question

    use https://pilovali.nl/youtube-to-mp3/
  6. Name : Cris Age : 18 Nationality : Lebanese GMT : +2 How long you been playing MTA:SA : 6 Years Have you ever been a developer or a staff? : Dev + Staff + Owner of a server with 97 players as a peak. What languages you can speak? : English arabic french What skills do you have? : 4 years in scripting. My 4 years of experience talks alone. How do you describe yourself? : I started playing MTA from 2011, and at 2012 i started learning LUA language and succeeded in making a server with a 97 peak in 2016. What do you think about being a member of a team? : I'm really not ready for being an OFFICIAL member but just message me with any script you want and i make it, so simple huh. Well i can come online every 2 days once in your server for like 1 hour or 2 depends. Tell us anything you want to say : I'm semi-active and not up to make big scripts but simple scripts and SO CHEAP. PM Me your facebook.
  7. Hi i've been in scripting for 3 years in MTA:SA and owned 3 servers and got a peak of 93 players well i'm here now willing to do any requested script for money ofcourse, price depends on how much the requested script is big anyway add me on skype: freakychris1337 I use skrill (no paypal or ANY other website) and when you add me on skype reply to this topic.
  8. local achievementscol = guiGridListAddColumn(GUIEditor.gridlist[1], "Achievements", 0.5) local rewardscol = guiGridListAddColumn(GUIEditor.gridlist[1], "Rewards", 0.5) So these are the columns, what i want is that i wanna add a row on each of these example on Achievements column i want 200 Kills on Rewards i want $200,000 I dont want the rows the same ... I dont need a code or an example just give me a function that does this...
  9. if (tonumber(playTime) >= 49) then Attempt to compare number with nil what is wrong...
  10. Some help over here..
  11. He means knife and katana. function onStealthKill(targetPlayer) cancelEvent(true, "No more stealth kills.") -- Aborts the stealth-kill. end addEventHandler("onPlayerStealthKill", getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event. This cancels knife stab from the back.
  12. I tried bindKey(text1, "down", binds) outside the function and it didnt work, and tried 2 other ways and it didnt work, i would like to get some functions that could help me to do it
  13. It's not working, well if it was working i would have said thanks but no.. Sorry for that
  14. function onPlayerQuit( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local getskin = getElementModel(source) if ( getskin ) then setAccountData ( playeraccount, "skinid", getskin) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) function onPlayerLogin( ) local get = getAccountData(playeraccount, "skinid") setElementModel(source, get) end addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin) Add this part to server side.
  15. function binds() -- let's start :D text1 = guiGetText(edit[1]) text2 = guiGetText(edit[2]) text3 = guiGetText(edit[3]) text4 = guiGetText(edit[4]) text5 = guiGetText(edit[5]) text6 = guiGetText(edit[6]) text7 = guiGetText(edit[7]) text8 = guiGetText(edit[8]) if (text1 == text2) then local slot = getPedWeaponSlot(lp) if (slot == 2) then setPedWeaponSlot(lp, 3) bindKey(text2, "down", binds) elseif (slot == 3) then setPedWeaponSlot(lp, 2) bindKey(text1, "down", binds) end end end addEventHandler("onClientGUIClick", GUIEditor.button[1], binds) I'm trying to do this, so the error is with bindKey(text1, "down", binds) Since text1 will be equal to text2 the first argument of bindKey will be the same if it's text1 or text2 it's the same, but it says expect arguement at 1 nil value on debugscript 3, any helps thanks lp is defined by getLocalPlayer() and everything is working even when pressing the GUIEditor.button[1] the functions works! but bindKey isnt working which is the most important!
  16. Delete, created 2 topics without attention.
  17. antiSpam = {} function antiSpamRPG(thePlayer) if isTimer(antiSpam[thePlayer]) then local slot = getPedWeaponSlot(thePlayer) if (slot == 7) then toggleControl(thePlayer, "aim_weapon", false) toggleControl(thePlayer, "fire", false) cancelEvent() else antiSpam[thePlayer] = setTimer(function(thePlayer) antiSpam[thePlayer] = nil end, 7000, 1, thePlayer) toggleControl(thePlayer, "aim_weapon", true) toggleControl(thePlayer, "fire", true) end end end addEventHandler("onPlayerWeaponFire", getRootElement(), antiSpamRPG) first function works, but the second one the player keeps firing RPGs no limit...
  18. Chris!i!

    help

    addEventHandler("onClientMarkerHit", marker, markhit) onMarkertHit is for server side only.
  19. Sorry for that delete this, i fixed the script by myself.
×
×
  • Create New...