Jump to content

raulrobi

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by raulrobi

  1. Ok but i still dont know how to spawn a object
  2. raulrobi

    Im not rouche

    and i dont sthealed scripts from others clans... im SURE that you dont see good
  3. raulrobi

    Im not rouche

    Ok , i dont need that NOOBISH clan
  4. raulrobi

    Im not rouche

    As COOKIE say i am not rouche , i am thekiller.I am a stupid idiot boy.Sorry all that i lied This topic may be closen after my friend saws it.Thank you and sorry
  5. Now i want to spawn a object ,can anyone help me? I need only to know what is the function to spawn a object not the script (i want to make it by myself)
  6. raulrobi

    Map efects[Q]

    dont know when it helps you but you can make a script into the map folder here is a script: function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) -- you can put how many u want setTimer ( explosions2, 1000, 1 ) -- is 1 second end function explosions2 () createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) createExplosion ( X, Y, Z, 12, false ) -- the same story but here is a group that explode simultan and the another explose after a second setTimer ( explosions1, 1000, 1 ) -- 1 second end Good luck but you must add it in meta
  7. yeha but you must add in meta this line i use winap so it will be So for me works
  8. Thank you very much.
  9. Please ok , can you help me please?
  10. k , since i dont heared about it
  11. Is possibile to set a ped to walk in a style ? I dont heared about it
  12. Use : https://community.multitheftauto.com/index.html?p ... ils&id=330 Good luck
  13. I used outputChatBox lol I used that in red ,it should to be outputChatBox = outputChatBox (message, r, g, b) ? °-° And i added : player = getLocalPlayer()
  14. Can anyone help me ? pls
  15. I maked it with Gui editor i think i worked on it 3 or 4 hours , but it didnt works -.-' Can anyone help me ? When i type debugscript 3 it gives: [16:17:33] Starting resources............... [16:17:34] Server started and is ready to accept connections! [16:17:36] start: Requested by Console [16:17:36] Starting buy [16:17:36] SCRIPT ERROR: ...iles/MTA San Andreas/server/mods/deathmatch/resources/buy/Untitled 1.lua:13: unexpected symbol near '>' [16:17:36] WARNING: Loading script failed: ...iles/MTA San Andreas/server/mods/deathmatch/resources/buy/Untitled 1.lua:13: unexpected symbol near '>' [16:17:36] start: Resource 'buy' started [16:18:10] debugscript: Incorrect client type for this command Here is my code : GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(161,102,390,342,"Buy window",false) GUIEditor_Button[1] = guiCreateButton(31,25,90,18,"Buy nitro",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(30,46,91,17,"Buy repair",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(131,25,209,50,"Press Buy nitro to buy a niro\nPress buy repair to buy a repair",false,GUIEditor_Window[1]) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == GUIEditor_Button[1]) then getPlayerMoney(player) > 100 then local vehicle = getPedOccupiedVehicle(player) local player = getLocalPlayer() if vehicle then addVehicleUpgrade(vehicle, 1010) takePlayerMoney(player, 100) outputChatBox("You've bought a nitro", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, nitro costs $100", player, 222, 0, 0, true) end addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == GUIEditor_Button[2]) then if getPlayerMoney(player) > 100 then local vehicle = getPedOccupiedVehicle(player) local player = getLocalPlayer() if vehicle then fixVehicle(vehicle) takePlayerMoney(player, 100) outputChatBox("You've bought a repair", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, repair costs 100 ", player, 222, 0, 0, true) end end end )
  16. I said i maked it with GMS scrit i deleted the another and i added the buy so Can you help me?
  17. Better i quit script , bb all
  18. Well i nned to add local player = getLocallayer() ? k ty for helping but i need to test dont works... and i dont know making server side
  19. Hello I learned a bit GUI , but i added to GMS script Buy window and i deletd the another.It didnt works . I started it and when i go to server nothing happeneds . Can you help me ? pls . Here is my code: function guiToggleVisible ( ) if ( guiGetVisible ( myWindow ) == true ) then guiSetVisible ( myWindow, false ) showCursor ( false ) else guiSetVisible ( myWindow, true ) showCursor ( true ) end end myWindow = guiCreateWindow ( 0, 0, .10, .10, "Buy window", true ) local tabPanel = guiCreateTabPanel ( 0, 10.0, 6, 2, true, myWindow ) local tabCommands = guiCreateTab( "Buy", tabPanel ) Buynitro_button = guiCreateButton( 0.1, 0.1, 0.50, 0.10, "Buy nitro", true, tabCommands ) Buyrepair_button = guiCreateButton( 0.1, 0.2, 0.50, 0.10, "Buy repair", true, tabCommands ) exit1_button = guiCreateButton( 0.30, 0.85, 0.5, 0.03, "Close Panel (F4)", true, tabCommands ) bindKey ( "u", "down", guiToggleVisible ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == exit1_button) then guiSetVisible( myWindow, false ) showCursor( false ) end end ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == buynitro_button) then getPlayerMoney(player) > 100 then local vehicle = getPedOccupiedVehicle(player) if vehicle then addVehicleUpgrade(vehicle, 1010) takePlayerMoney(player, 100) outputChatBox("You've bought a nitro", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, nitro costs 100", player, 222, 0, 0, true) end addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == Buyrepair_button) then if getPlayerMoney(player) > 100 then local vehicle = getPedOccupiedVehicle(player) if vehicle then fixVehicle(vehicle) takePlayerMoney(player, 100) outputChatBox("You've bought a repair", player, 0, 222, 0, true) else outputChatBox("You are not in a vehicle", player, 222, 0, 0, true) end else outputChatBox("Not enough cash, repair costs 100 ", player, 222, 0, 0, true) end end end ) Can anyone help me pls ?
  20. Maybe he saws a example and maked same as it and im not thekiller in game P.S : im Rouche AND i want to learn scripting not sthealing as YOU !
  21. Are you editing them i didnt say that , noob
  22. and kevin11 is COOKIE , i speaked with him ( DMC server ),he cheats
  23. Hey , i dont want more to copy anothers scripts , i want to learn scripting . Can anyone help me pls ? i want to be in the right way
  24. Pls help me i cant make this script making to save cash. addCommandHandler ( "cash", function ( player, command, dude ) if dude then local temp = getPlayerFromName(dude) if temp then outputChatBox("The player "..dude.." has $"..tostring(getPlayerMoney(temp)),player,0,255,0) else outputChatBox("Player "..dude.." not found",player,0,255,0) end else outputChatBox("The player "..getPlayerName(player).." has $"..tostring(getPlayerMoney(player)), getRootElement(),0,255,0) end end ) Do anyone can help me?Pls
×
×
  • Create New...