Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

Everything posted by drk

  1. I know that isn't easy but I want to try
  2. http://www.4shared.com/zip/aH9FUa06/push.html
  3. Im making a new top hunter and I don't know where I will save the top data to the map. Can anyone helps me
  4. Copy my last code again, updated. And what you mean by "owe" ?
  5. GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(423,220,477,311,"Level_System v3.0 ",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,21,264,281,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) row = guiGridListAddRow ( GUIEditor_Grid[1] ) col = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) GUIEditor_Label[1] = guiCreateLabel(286,43,144,23,"Level :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(284,95,102,21,"EXP:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[1]) if col then for id, players in ipairs(getElementsByType('player')) do guiGridListSetItemText(GUIEditor_Grid[1],row,col,getPlayerName(players),false,false) end end addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Grid[1] then local theRow, theCol = guiGridListGetSelectedItem(source) if theRow and theCol and theRow ~= -1 and theCol ~= -1 then local name = guiGridListGetItemText(source,theRow, theCol) end end end) bindKey('F7','down', function() guiSetVisible(GUIEditor_Window[1[, not guiGetVisible(GUIEditor_Window[1])) showCursor(not isCursorShowing()) end) Updated.
  6. drk

    save time

    I think its because it start the count from 0, then it sets to 0 again and start count again.
  7. drk

    Need help

    lol, I will search about this. Edit: I can't help you. Please wait for a more experienced scripter help you
  8. GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(423,220,477,311,"Level_System v3.0 ",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,21,264,281,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) local row = guiGridListAddRow ( playerList ) local col = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) GUIEditor_Label[1] = guiCreateLabel(286,43,144,23,"Level :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(284,95,102,21,"EXP:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[1]) if col then for id, players in ipairs(getElementsByType('player')) do guiGridListSetItemText(GUIEditor_Grid[1],row,col,getPlayerName(players),false,false) end end addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Grid[1] then local theRow, theCol = guiGridListGetSelectedItem(source) if theRow and theCol and theRow ~= -1 and theCol ~= -1 then local name = guiGridListGetItemText(source,theRow, theCol) end end end) bindKey('F7','down', function() guiSetVisible(GUIEditor_Window[1[, not guiGetVisible(GUIEditor_Window[1])) showCursor(not isCursorShowing()) end) I simplified your bind key function too.
  9. drk

    Need help

    Why you don't try to set a timer to outputChatBox with 800ms delay message = { '#ffff00RADIO: #ffffffStream stopped' } addEventHandler('onColShapeLeave',root, function(tplayer) if source == RadioColshape then if getElementType(tplayer) == 'player' then local msg = math.random(1,#message) setTimer(outputChatBox, 800, 1, msg, tplayer, 255, 255, 255, true) end end end) I not tested it, I think setTimer arguments is invalid but try
  10. Change GUI variables or add GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} on top of script
  11. Aw, my bad, I forgot a end. addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Grid[1] then local theRow, theCol = guiGridListGetSelectedItem(source) if theRow and theCol and theRow ~= -1 and theCol ~= -1 then local name = guiGridListGetItemText(source,theRow, theCol) --now use your head and script all, because we don't have the level and exp system then we can't make all for you end end end)
  12. drk

    Need help

    function onLeave(player) if getElementType(player) == 'player' then outputChatBox('#ffff00RADIO: #ffffffStream stopped.', player, 255, 255, 255, true) end end addEventHandler('onColShapeLeave',RadioColshape,onLeave) If it don't solve, I can't help you.
  13. You created a function ( "function me()" ) and you don't closed it ( with end ). I said to copy mine code and test.
  14. drk

    Desync player.

    Sync is disabled in MTASA.
  15. lol? Only copy mine and test, you created a function and dont closed it. GUIEditor_Window[1] = guiCreateWindow(423,220,477,311,"Level_System v3.0 ",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,21,264,281,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) local row = guiGridListAddRow ( playerList ) local col = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) GUIEditor_Label[1] = guiCreateLabel(286,43,144,23,"Level :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(284,95,102,21,"EXP:",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,255) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[1]) for i, players in ipairs(getElementsByType('player')) do guiGridListSetItemText(GUIEditor_Grid[1],row,col,getPlayerName(players),false,false) end addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Grid[1] then local theRow, theCol = guiGridListGetSelectedItem(source) if theRow and theCol and theRow ~= -1 and theCol ~= -1 then local name = guiGridListGetItemText(source,theRow, theCol) --now use your head and script all, because we don't have the level and exp system then we can't make all for you end end)
  16. drk

    Need help

    You get any error? You tried this? addEventHandler('onColShapeLeave',root, function(player,dimension) if source == RadioColshape then if getElementType(player) == 'player' then outputChatBox('#ffff00RADIO: #ffffffStream stopped.', player, 255,255,255,true) end end end)
  17. drk

    Help

    if the player have tag XX the name of player will be cyan color? if it's: addEventHandler('onPlayerJoin',root, function() if string.find(getPlayerName(source),'XX') then setPlayerName(source,'#99ffffXX|'..getPlayerFromName(source)) end end) I think it's wrong and I don't know if it's possible to change the player name color.
  18. drk

    Need help

    LOL Only remove onColShapeLeave event. What you don't understand in this lol addEventHandler('onColShapeLeave',root, function(player,dimension) if source == RadioColshape then if getElementType(player) == 'player' then outputChatBox('#ffff00RADIO: #ffffffStream stopped.', player, 255,255,255,true) end end end)
  19. Post meta.xml and see in the console when you refresh if you get any error.
  20. drk

    Help

    What? oO Can you speak english? D: I can't understand anything.
×
×
  • Create New...