drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
I know that isn't easy but I want to try
-
AH LOL
-
Euro is in a vehicle?
-
What is wrong?
-
http://www.4shared.com/zip/aH9FUa06/push.html
-
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
-
Remove "" from meta.xml
-
Copy my last code again, updated. And what you mean by "owe" ?
-
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.
-
I think its because it start the count from 0, then it sets to 0 again and start count again.
-
lol, I will search about this. Edit: I can't help you. Please wait for a more experienced scripter help you
-
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.
-
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
-
Change GUI variables or add GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} on top of script
-
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)
-
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.
-
You created a function ( "function me()" ) and you don't closed it ( with end ). I said to copy mine code and test.
-
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)
-
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)
-
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.
-
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)
-
Post meta.xml and see in the console when you refresh if you get any error.
