Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. Maybe you don't have a resource or you cancel the event from other resource .
  2. Change it from the meta.xml file type = 'gamemode' to 'script' And Done .
  3. Go to freeroam open ( fr_server.lua ) File then go to 217 line search for this function : function setMySkin(skinid) if isPedDead(source) then local x, y, z = getElementPosition(source) if isPedTerminated(source) then x = 0 y = 0 z = 3 end local r = getPedRotation(source) local interior = getElementInterior(source) spawnPlayer(source, x, y, z, r, skinid) setElementInterior(source, interior) setCameraInterior(source, interior) else setElementModel(source, skinid) setElementHealth(source, 100) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end Remove this function : setElementHealth(source, 100) And should work fine !
  4. And how do you set the player skin | = ?
  5. This isn't the freeroam try to download the latest version from the community and try it.
  6. You didn't answer for my question i said which resource you're using it to set a skin.
  7. iPrestege

    Table

    No but : onClientWeaponFire You can !
  8. /debugscript 3 And tell us what's the problem .
  9. Can you tell me which resource set the health to fully . Freeroam or admin or or .
  10. -- # Server Side : local marker = createMarker ( 2786.16235, 1222.62122, 09.85634, "cylinder", 1.5, 255, 255, 255, 200 ) function GiveWeaponHandler ( player ) if isElementWithinMarker ( player,marker ) then giveWeapon ( player,24,100 ) end end addCommandHandler('give',GiveWeaponHandler) Try this.
  11. -- # Server Side : local marker = createMarker ( 2786.16235, 1222.62122, 09.85634, "cylinder", 1.5, 255, 255, 255, 200 ) local isCommandHandler = nil addEventHandler ( "onMarkerHit", marker, function ( player ) if getElementType ( player ) == 'player' then if isCommandHandler ~= true then addCommandHandler ( 'give',GiveWeaponHandler ) isCommandHandler = true else outputChatBox('* You are already handle it!',player,255,0,0) end end end,false ) function GiveWeaponHandler ( player ) giveWeapon ( player,24,100 ) end You mean that?
  12. لانك مسمي الميتا يوم ترسلة mta حولة meta (; !!
  13. iPrestege

    Help!

    Try re-install mta but please close the server before re-install it .
  14. Please post your own topic i don't like to post on other's topics .
  15. function open () vent = guiCreateWindow(485, 185, 314, 385, "WINDOW", false) guiWindowSetSizable(vent, false) guiSetVisible ( vent, false ) a = guiCreateButton(9, 31, 296, 58, "e", false, vent) b = guiCreateButton(9, 259, 296, 58, "e", false, vent) c = guiCreateButton(13, 94, 77, 30, "ele", false, vent) d = guiCreateButton(222, 94, 77, 30, "ee", false, vent) e = guiCreateButton(13, 323, 77, 30, "eble", false, vent) f = guiCreateButton(222, 323, 77, 30, "eeble", false, vent) addEventHandler ("onClientGUIClick", a, aa, false) addEventHandler ("onClientGUIClick", b, bb, false) addEventHandler ("onClientGUIClick", c, cc, false) addEventHandler ("onClientGUIClick", d, dd, false) imagen = guiCreateStaticImage(13, 133, 292, 120, "carm.png", false, vent) bindKey ( 'f4', 'down', windowopen ) end addEventHandler ( 'onClientResourceStart', resourceRoot, open ) function aa () outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true) showCursor (true) end function bb () outputChatBox ("YOU PRESSED THE BUTTON !!", 255, 0, 0, true) showCursor (true) end function cc () outputChatBox ("YOU PRESSED THE BUTTON", 0, 255, 0, true) showCursor (true) end function dd () outputChatBox ("YOU PRESSED THE BUTTON.", 255, 0, 0, true) showCursor (true) end function windowopen ( ) guiSetVisible ( vent, not guiGetVisible ( vent ) ) showCursor ( guiGetVisible ( vent ) ) end
  16. GUIEditor_Window = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(371,116,295,362,"wwww",false) GUIEditor_Scrollpane[1] = guiCreateScrollPane(261,-554,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(23,24,249,258,"images/cold.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(45,281,50,51,"images/add.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(208,285,62,61,"images/close.png",false,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(115,126,116,106,"images/mtalogo.png",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(250,250,250,250,"wwww2",false) guiSetVisible ( GUIEditor_Window[2],false ) addEventHandler('onClientGUIClick',GUIEditor_Image[4], function ( ) for _,v in pairs ( GUIEditor_Window ) do if ( v and v ~= GUIEditor_Window[2] ) then guiSetVisible ( v,false ) end guiSetVisible ( GUIEditor_Window[2],true ) guiBringToFront ( GUIEditor_Window[2] ) showCursor ( true ) end end,false ) جربة ورد لي خبر .. !
×
×
  • Create New...