Jump to content

amm2100

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by amm2100

  1. function spawnSanchez() local spawnthecar = createVehicle ( 468, 1543.4465332031, -1724.4774169922, 12.546875 ) warpPedIntoVehicle(source, spawnthecar) end local myMarker = createMarker( 1543.4465332031, -1724.4774169922, 12.546875 , "cylinder", 2.0, 250, 250, 250, 200, getRootElement() ) function MarkerHit ( hitPlayer, matchingDimension ) outputChatBox ( getPlayerName(hitPlayer) .. " Entered a Died Marker" ) end function createSpawnWindow() windowSpawncar = guiCreateWindow(0.36, 0.70, 0.26, 0.29, "", true) guiWindowSetSizable(windowSpawncar, false) btnSancheZ = guiCreateButton(0.05, 0.12, 0.87, 0.14, "1: Sanchez", true, windowSpawncar) local font0_PetitFormalScript = guiCreateFont(":guieditor/fonts/PetitFormalScript.ttf", 10) guiSetFont(btnSancheZ, font0_PetitFormalScript) guiSetProperty(btnSancheZ, "NormalTextColour", "FFFFFFFF") btnVoodoo = guiCreateButton(0.05, 0.39, 0.87, 0.14, "2: Voodoo", true, windowSpawncar) guiSetFont(btnVoodoo, font0_PetitFormalScript) guiSetProperty(btnVoodoo, "NormalTextColour", "FFFFFFFF") btnCaddy = guiCreateButton(0.06, 0.67, 0.86, 0.14, "3: Caddy", true, windowSpawncar) guiSetFont(btnCaddy, font0_PetitFormalScript) guiSetProperty(btnCaddy, "NormalTextColour", "FFFFFFFF") guiSetVisible( windowSpawncar, true ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) addEventHandler( "onClientMarkerHit", getRootElement(), createSpawnWindow) I made code to show GUI window when player enter the Marker but I need it to show to the player only not all Player's can any one help me
  2. How can I put .jpg image in MTA Gui ???
  3. How to get the RBG of Colors , in Easy way? like I need RBG of Golden color and Grey color
  4. Nope , I need onPlayerWaste if He red spawn in X ,Y ,Z and if He Blue spawn in XBlue ,YBlue ,ZBlue
  5. I need to spawn the Player According to his Team i made 2 team one local Red = createteam( "RedTeam" ) local Blue = createteam( "BlueTeam" ) How spawn and Re-spawn them according to Team
  6. Please Help I got error setTimer(for x,thePlayer in ipairs(players) do local r , b , g = getPlayerNametagColor ( thePlayer ) createBlipAttachedTo( thePlayer, 0, 2, r, b, g, 255, 0, 99999.0, getRootElement() ) end, 1000, infinite , x , thePlayer , players , r, b, g) Error in Console [21:36:07] SCRIPT ERROR: myserver\script.lua:33: unexpected symbol near 'for' [21:36:07] ERROR: Loading script failed: myserver\script.lua:33: unexpected symbol near 'for' Line 33 form setTimer
  7. when another player join should I restart the function again ???? and How can I put the Bilp color = player name color ??
  8. local x = 0 local players = getElementsByType ( "player" ) for x,thePlayer in ipairs(players) do createBlipAttachedTo( thePlayer, 0, 2, 255, 0, 0, 255, 0, 99999.0, getRootElement() ) end
  9. Which Function can I use to get the Number of online Players ??
  10. How to attach Blip to all Players on MyServer ?? Which Functions should I use ?
  11. Uset setElementSpeed bool setElementSpeed (element theElement, [ int/string unit="kph", int speed=0 ]) link of the Function https://wiki.multitheftauto.com/wiki/SetElementSpeed
  12. You should Try 1st learn the Lua 2nd Go and try
  13. I made it on client-side and It Work :3 Ty very Much sorry I am Noob Scriptwriter
  14. [04:46:00] WARNING: myserver\script.lua:36: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'X'] Still not Working :\
  15. Same Error [23:48:02] WARNING: myserver\script.lua:33: Bad argument @ 'bindKey' [Expected player at argument 1, got nil] Line 33 is bindKey ( player, "X" , "down", functionName ) and Not Working
  16. Hi , 1st I am newbie to Script I start since 2 Days I need help in bindkey x to show the cursor My Code bindKey ( "x", "down", function () showCursor( true ) end ) Help Me Please That The Error I got in Console :[23:11:32] WARNING: myserver\script.lua:33: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x'] Notice bindKey ( "x", "down", This is Line 33
×
×
  • Create New...