iFoReX Posted March 31, 2012 Posted March 31, 2012 @tittle please help me elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 31, 2012 Posted March 31, 2012 If you're talking about my resource, then I used the element data 'exp' which stores player experience. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 31, 2012 Author Posted March 31, 2012 I dont know how do but I do exports.scoreboard:addScoreboardColumn('EXP') levels = { [0] = {"Level 0", "10"}, [1] = {"Level 1", "20"}, [2] = {"Level 2", "100"}, [3] = {"Level 3", "150"}, [4] = {"Level 4", "200"}, [5] = {"Level 5", "2000000"}, } I dont know if it work elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 31, 2012 Posted March 31, 2012 exports.scoreboard:addScoreboardColumn('exp') levels = { [0] = {"Level 0", "10"}, [1] = {"Level 1", "20"}, [2] = {"Level 2", "100"}, [3] = {"Level 3", "150"}, [4] = {"Level 4", "200"}, [5] = {"Level 5", "2000000"}, } San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted March 31, 2012 Author Posted March 31, 2012 for dont do spam help me with it please GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end local grid1 = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") local grid2 = guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") addEventHandler("onClientDoubleClick", root, function () if ( source == grid1 ) then createVehicle ( 427, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) elseif ( source == grid2 ) then createVehicle ( 596, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) end end local x = 1540.95654 local y = -1687.67078 local z = 5.89063 local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end I can when the player is in marker and Press Enter appear the Grid, But if dont is in the marker dont appear the grid with bindkey elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted March 31, 2012 Posted March 31, 2012 local x = 1540.95654 local y = -1687.67078 local z = 5.89063 local market = createMarker ( 685.62610, -2692.39307, 7.5, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( 294.38306 + 2, -167.90103, 1.57813 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) local market3 = createMarker ( 1526.51270, -1677.93237, 5, "cylinder", 1.5, 0, 0, 255, 170 ) local ped = createPed ( 286, 1525.26294, -1677.85596, 5.89063, 270 ) setElementFrozen(ped, true) GUIEditor_Grid = {} GUIEditor_Grid[1] = guiCreateGridList(258,160,294,357,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end local grid1 = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"Camion Polis") local grid2 = guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Auto Polis") addEventHandler("onClientDoubleClick", root, function ( ) if ( source == grid1 ) then createVehicle ( 427, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) elseif ( source == grid2 ) then createVehicle ( 596, x, y, z ) guiSetVisible( GUIEditor_Grid[1], false ) end end ) -- You had a missing parentheses. bindKey ( "enter", "down", function ( ) if ( isElementWithinMarker ( localPlayer, market3 ) ) then guiSetVisible ( GUIEditor_Grid[1], true ) end end ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setTimer ( setElementPosition, 2000, 1, player, 294.38306, -167.90103, 1.57813 ); elseif ( player == localPlayer and source == market2 ) then setTimer ( setElementPosition, 2000, 1, player, 685.62610 + 2, -2692.39307 + 2, 7.5 + 2 ); elseif ( player == localPlayer and source == market3 ) then addEventHandler ( "onClientRender", root, drawText ) end end ) addEventHandler ( 'onClientMarkerLeave', root, function ( player ) if ( player == localPlayer and source == market3 ) then removeEventHandler ( "onClientRender", root, drawText ) end end ) function drawText ( ) dxDrawText("Press Enter for do the job",458.0,295.0,631.0,317.0,tocolor(255,0,0,170),1.2,"default","left","top",false,false,false) end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now