Jump to content

^Dev-PoinT^

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by ^Dev-PoinT^

  1. yes its possible the ped example function pedLoad ( name ) createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
  2. Use /debugscript 3 and tell us what is ther errors function spawnOnLogin (prevA, curA, autoLogin) outputChatBox ("Welcome to Veteran Stunt Server!", source, 255, 255, 0, false) spawnPlayer (source, 1993.8115234375, -2446.26171875, 13.546875, 0.00274658203125, math.random (0,288), 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) setPlayerSkin(playerSource, 0,280) end addEventHandler("onPlayerLogin", getRootElement(), spawnOnLogin) function onPlayerSpawn ( ) spawnPlayer (source, 1993.8115234375, -2446.26171875, 13.546875, 0.00274658203125, math.random (0,288), 0, 0, spawnTeam) setPlayerSkin(playerSource, 0,280) end addEventHandler("onPlayerWasted",root,onPlayerSpawn)
  3. guiStaticImageLoadImage ( image, "rang/r1"..tostring( i )..".png" ) from r to r1
  4. Try This function imager() local xp,yp = guiGetScreenSize() x = xp/2 - 150/2+500 y = yp/2 - 250 image = guiCreateStaticImage( x,y, 150, 150, "rang/r1.png", false ) end addEventHandler ( "onClientResourceStart",getResourceRootElement(getThisResource()), imager) for i = 1, 23 do addEvent ( "r"..tostring ( i ), true ) addEventHandler ( "r"..tostring ( i ), getRootElement ( ), function ( image ) guiStaticImageLoadImage ( image, "rang/r"..tostring( i )..".png" ) lvlup = playSound("lvlup.mp3",false) setSoundVolume(lvlup,1) end ) end
  5. https://wiki.multitheftauto.com/wiki/RedirectPlayer
  6. This mybe work function openGui() guiSetVisible (GUIEditor_Window[1], true) end P.S iam not sure
  7. no Problem we are here any time you want
  8. the code is right but the problem its on Gui code but the gui code here to see the error and ,root, use for serverside only?
  9. i Have Find This function CToptimes:openWindow () if self.gui['container'] then return end self.size = {} self.size.x = 400-120 self.size.y = 46 + 15 * 8 local sizeX = self.size.x local sizeY = self.size.y
  10. Thx SoldSnake14 And Tapl For Help Sloved
  11. Hi all i Made if killer kill a player show images Like Samp See local image = guiCreateStaticImage ( x/4, y/5.8, 415,67, "H"..math.random(1,5)..".png", false ) local x,y = guiGetScreenSize() function headshot ( killer ) guiSetVisible ( image, true ) guiStaticImageLoadImage(image, "H"..math.random(1,5)..".png") end addEventHandler ( "onClientPlayerWasted", getRootElement(), headshot )getLocalPlayer() but he say there is a error its 5 images
  12. Abio Thx For tell me my errors and see This function giveArmor() local pC= getAlivePlayers() if (#pC >= 1 and #pC <= 3) then for id, player in ipairs(pC) do setPedArmor(player, 50) outputChatBox(getPlayerName(player).." has won 50% Armor For Alive on Round", root),0,255,0 outputChatBox("You Have won Free Armor for be Alive in Round", player),255,255,0 end end end addEventHandler( "onPlayerWasted", getRootElement( ), function() setPedArmor(player, 0) end)
  13. what i do then ? can you fix it if Alive Player = 3 give Them Armor with msg
  14. what about This Pleae Help function() local pC= getAlivePlayers() if ( pC >= 1 or 2 or 3) then for id, player in ipairs ( getElementsByType ( "player" ) ) do setPlayerArmor ( player, 50 ) outputChatBox(getPlayerName.."Has won 50% Armor For Alive on Round",root,0 , 255, 0) outputChatBox(getPlayerName.."Has won 50% Armor For Alive on Round",root,()255 , 255, 0) end end
  15. yes but i i want it if 1,2,3 Players Not just 1 player
  16. Hi all i have made This function() local pC= getAlivePlayers() if ( pC >= 1,3) then for id, player in ipairs ( getElementsByType ( "player" ) ) do setPlayerArmor ( player, 50 ) outputChatBox(..getPlayerName..Has won 50% Armor For Alive on Round,root,") outputChatBox("You Have won Free Armor for be Alive in Round",getLocalPlayer() end end if 1 player or 3 Alive in Round give Them Armor with msg Please Fix and tell me what is my errors
  17. For example function randomVehColors() for i, car in ipairs( getElementsByType( "vehicle" ) ) do local color = {} color[1] = math.random(0,126) -- random from 0 to 126, because colors is from 0 to 126 color[2] = math.random(0,126) color[3] = math.random(0,126) color[4] = math.random(0,126) -- we take 4 random numbers because setVehicleColor have parameters with 4 colors setVehicleColor ( car, color[1], color[2], color[3], color[4] ) -- setting color to vehicle end end setTimer( randomVehColors, 500, 0 ) -- timer changes all vehicles colors to random every 0.5 sec.
  18. yes Kenix Nice Scripting lol
  19. use This https://wiki.multitheftauto.com/wiki/SetVehicleColor
  20. TAPL Sorrey For That and thx for fix i well try my self Thx Dude
  21. Tapl if you great Script Help me or ..... i made 50 % From my script i have This Problem just this and you say dont copy form wiki when you enter the lua script you was noob in it and Now you great you start insult me?
×
×
  • Create New...