Jump to content

Mr.unpredictable.

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by Mr.unpredictable.

  1. can you fix this i just made for linking the button to the command, sorry if i'm asking too many question , i am not that good lua scripter. addEventHandler ( "onClientGUIClick", GUIEditor.button[1], getnrggui, false ) function getnrggui () executeCommandHandler("getnrg",playersource) end the commands are in server side so not sure if it will work
  2. thanks bind key is working
  3. i got another problem can anyone help ?? my bind key is not working for the gui here is my code GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(222, 217, 378, 192, "get bike", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA1818") GUIEditor.button[1] = guiCreateButton(57, 88, 109, 57, "GET NRG", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(224, 93, 126, 52, "GET FCR", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(87, 4, 206, 15, "", false, GUIEditor.window[1]) end ) bindKey("F2","down", function () guiSetText(GUIEditor.label[1],tostring(getElementData(localPlayer,"window[1]"))) if visbWndw then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end visbWndw = not visbWndw end) end ) can any find why it's not working ?
  4. can you give me a example you mean should i menstion button name in onclient gui click ?
  5. few days ago i created a script in which when i do /getnrg i get nrg and when i do /getfcr i get fcr then i though of creating a gui pic of the gui http://i.imgur.com/tr2aKBy.png code: my problem is that how do i link those command to those buttons? like when i click on get nrg button the server automatically does /getnrg and give me nrg
  6. did you menstion the gamemode in the meta file ?
  7. you can do it with a function "attachElementToBone" but you need bone attach resource for that
  8. idk how to disable orginal weapon sound but if you want change orginal sound to your costom/downloaded sound then use these functions onClientWeaponFire Function's : getElementPosition playSound3D
  9. https://code.google.com/p/mtasa-tactics/downloads/list there you go all versions of mtasa tactics gamemode +1 addon.
  10. i was creating a anti tear gas and anti movtova script for a tdm map i wanted it like zombies doesn't lose hp with moltova or they don't get affected by tear gas, but still there is problem can any one tell me whats wrong in my script? addEventHandler ( "onClientPlayerDamage", localPlayer, function (weaponID ) if ( weaponID == 17,18 ) and ( getTeamName ( source ) == "zombies" ) then cancelEvent ( ) end end )
  11. i tried all posible way but still the rocket launcher destroys the car, i think i should attach some other weapon which does less damage and more fun.
  12. it still blasts the car i don't want it to blast the car it should only do little damage
  13. hey i just attached a rocket launcher to my car, but i wanted to reduce the damage rocket does like if it hits the car it should only do 10% damage not blast the car i tried this but nothing happend setWeaponProperty(35, "poor", "damage", 10) can any one tell what should i do?
  14. yay Object-Oriented Programming, great job guys
  15. ik i tried this but it didn't work can you give me a example ?
  16. guys i need your help can any one tell how do i attach weapon to the vehicle id 494 weapon should be like mini gun or rc baron
  17. this adds an amount of armor that the player defined in command 'addarmor'. function givePlayerArmor( player, command, amount ) if getPedArmor(player) == 100 then return outputChatBox("Your armor already is complete!", player, 220, 0, 0 ) -- Inform the player if your armor already is complete. end if amount and tonumber(amount) >= 1 or tonumber(amount) <= 100 then -- If amount is between 1 and 100. setPedArmor( player, tonumber(amount) ) -- Set amount armor that player chosen on the command. else return end if not amount then outputChatBox( "sintax: /addarmor [armor-amount]", player, 220, 0, 0 ) -- Inform the player if 'amount' argument is missing. end end addCommandHandler( "addarmor", givePlayerArmor ) https://wiki.multitheftauto.com/wiki/SetPedArmor
  18. thanks, i have almost completed the map+script, only stuck with skate board. viewtopic.php?f=91&t=76572
  19. ok so you mean your ports are open but players can't find your server in server brower then go control panel> then fire wall > allow an app to communicate with windows firewall > change settings and then check if mta server or multi theft auto server is ticked has public.
  20. these errors only appears when your variable is not properly set, it's because of your PHP error reporting settings, sorry i can't fix it
  21. can you explain clearly what you are trying to say, if you mean players can't join your server then check if your ports are open.
×
×
  • Create New...