
Try
Members-
Posts
136 -
Joined
-
Last visited
Everything posted by Try
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(950,290,310,199,"Members Commands by Maria",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,28,75,22,"Turtle",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,140,75,22,"Love",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(9,112,75,22,"Money",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(9,84,75,22,"Ship",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(9,56,75,22,"Shark",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(9,168,292,22,"Reset",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(89,27,208,135,"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\nCommands Member\n\n* Please don't abuse of any object\n\n* Any bugs tell for one H-Admin\n\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-",false,GUIEditor_Window[1]) function show(source) guiSetVisible (GUIEditor_Window,true) showCursor(true) end addCommandHandler("open",show) function buttons(player, source) if (source == GUIEditor_Button[1]) then tiggerServerEvent(source, "turtle",source) elseif (source == GUIEditor_Button[2]) then tiggerServerEvent(source, "love", source) elseif (source == GUIEditor_Button[3]) then tiggerServerEvent(source, "money", source) elseif (source == GUIEditor_Button[4]) then tiggerServerEvent(source, "ship", source) elseif (source == GUIEditor_Button[5]) then tiggerServerEvent(source, "shark", source) elseif (source == GUIEditor_Button[6]) then tiggerServerEvent(source, "reset", source) end end end end end end addEventHandler("onClientGUIClick",getRootElement(),buttons) its this yeah but about the indents i don't understand again and the code continue don't showing and attaching the objects
-
Elseif i understand but what is indents
-
Heyo Forum!!!!!!!!! I need a help at this: All is working only the objects is not creating and don't attaching Client: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(950,290,310,199,"Members Commands by Maria",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,28,75,22,"Turtle",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,140,75,22,"Love",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(9,112,75,22,"Money",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(9,84,75,22,"Ship",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(9,56,75,22,"Shark",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(9,168,292,22,"Reset",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(89,27,208,135,"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\nCommands Member\n\n* Please don't abuse of any object\n\n* Any bugs tell for one H-Admin\n\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-",false,GUIEditor_Window[1]) function show(source) guiSetVisible (GUIEditor_Window,true) showCursor(true) end addCommandHandler("open",show) function buttons(player, source) if (source == GUIEditor_Button[1]) then tiggerServerEvent(source, "turtle",source) else if (source == GUIEditor_Button[2]) then tiggerServerEvent(source, "love", source) else if (source == GUIEditor_Button[3]) then tiggerServerEvent(source, "money", source) else if (source == GUIEditor_Button[4]) then tiggerServerEvent(source, "ship", source) else if (source == GUIEditor_Button[5]) then tiggerServerEvent(source, "shark", source) elseif (source == GUIEditor_Button[6]) then tiggerServerEvent(source, "reset", source) end end end end end end addEventHandler("onClientGUIClick",getRootElement(),buttons) Server: function turtle(source, commandName) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) end addEvent("turtle",true) addEventHandler("turtle",getRootElement(),turtle) function love(source, commandName) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) end addEvent("love",true) addEventHandler("love",getRootElement(),love) function money(source, commandName) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) end addEvent("money",true) addEventHandler("money",getRootElement(),money) function ship(source, commandName) ship = createObject(8493,0,0,3) attachElements(ship, source,0,0,18) setElementAlpha(source, 0) end addEvent("ship",true) addEventHandler("ship",getRootElement(),ship) function shark(source, commandName) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) end addEvent("shark",true) addEventHandler("shark",getRootElement(),shark) function reset(source, commandName) destroyElement(shark1) destroyElement(turtl1) destroyElement(money) destroyElement(ship) destroyElement(love) setElementAlpha(source, 255) end addEvent("reset",true) addEventHandler("reset",getRootElement(),reset) Please don't stole!
-
WTF FIRST ITS: getRootElement() not getLocalPlayer()
-
Hmm... You need set player name color? its this yeah? function ntag ( thePlayer, commandName, r, g, b ) setPlayerNametagColor ( thePlayer, true ) setPlayerNametagColor ( thePlayer, r, g, b ) end addCommandHandler ( "nametagcolor", ntag ) try this
-
I Tested all again and changed the codes and....... Then i did the code and work My MTA server bugged the script Sorry --------------------------------------- Now i got a trouble When i did setTimer(destroyObject,60000,1,obj) it output at the debugscript 3 this: BadArgument @ setTimer
-
If i stop and start the script realy fast this will work?
-
The Script im making trouble add tag for the players like [Admin] [Mod] ... and my censorship i made don't cancel the world cuz its a output from other script
-
Hello Guys! Im scripting for BadWolf Server Clan! I need a little help The server have a Tags Script and when i put cancelEvent() at the censorship it don't cancel cuz the script What i can do?
-
Ok about the members i understand but i need without group too how to do?
-
Hello Guys! Can some one help me? i need know how to make this work: if (getPlayerTeam == 0) then -- and the other if (getPlayerTeam == Members) then Can someone help?
-
local x,y,z = getElementPosition(door) door = createObject(3095,1279.9134521484,-2054.0205078125,62.628402709961,0,271.07666015625,0) function move(thePlayer,cmd) if ( z = 62.628402709961 ) then moveObject ( door, 10000, x, y, z + 10 ) else outputChatBox("Door is already open",thePlayer,0,255,0,true) end end addCommandHandler ( "dooropen", move) function movez(thePlayer,cmd) if ( z = 72.628402709961 ) then moveObject ( door, 10000, x, y, z - 10 ) else outputChatBox("Door is already closed",thePlayer,0,255,0,true) end end addCommandHandler ( "doorclose", movez)
-
LoL what happen with you my love?! Don't talk here go to msn This is a off topic now
-
Hahaha Np Your Welcome! And I HAD a server My server is closed now
-
Ghostman I have a level system I had A zombie Sever I think it will work let me post the code: The script its from castillo then i only add the code for get exp local rootElement = getRootElement() levels = {} levels[0] = {"Test 0", "10"} levels[1] = {"Test 1", "20"} levels[2] = {"Test 2", "100"} levels[3] = {"Test 3", "150"} levels[4] = {"Test 4", "200"} function ResourceStart () executeSQLCreateTable("levels", "accountname STRING, level INT") end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), ResourceStart) function addPlayer() local account = getPlayerAccount(source) local playername = getPlayerName(source) CheckPlayer = executeSQLSelect ( "levels", "accountname", "accountname = '" .. getAccountName(account) .. "'" ) if ( type( CheckPlayer ) == "table" and #CheckPlayer == 0 ) or not CheckPlayer then executeSQLInsert ( "levels", "'".. getAccountName(account) .."','0'" ) end end addEventHandler("onPlayerLogin",rootElement,addPlayer) addEventHandler( "onElementDataChange", rootElement, function () if getElementType(source) == "player" then local acc = getPlayerAccount(source) local accountname = getAccountName(acc) local playername = getPlayerName(source) local data = getElementData(source,"exp") local sqldata = executeSQLSelect ( "levels", "level","accountname = '" .. accountname .. "'") lvl = sqldata[1]["level"] if tostring(data) == tostring(levels[lvl][2]) then outputChatBox("*Level system: congratulations ".. playername .." you're now a ".. levels[lvl][1] .."!",getRootElement(),0,255,0) local textDis = textCreateDisplay () local item = textCreateTextItem( "LEVEL UP! YOU'RE NOW LEVEL ".. tostring(sqldata[1]["level"]), 0.5, 0.4, 2, 0, 255, 0, 255, 4, "center", "center" ) textDisplayAddText ( textDis, item ) textDisplayAddObserver ( textDis, source ) setTimer ( textDestroyTextItem, 5000, 1, item ) setTimer ( textDestroyDisplay, 5000, 1, textDis ) sql = tonumber(sqldata[1]["level"]) + 1 executeSQLUpdate("levels", "level = '".. sql .."'", "accountname = '".. accountname .."'") end end end) function rewardOnWasted ( killer ) local exp = getElementData(killer,"exp") if exp then setElementData(killer,"exp",tonumber(getElementData(killer,"exp"))+5) outputChatBox("Experience gained +5! total ".. tonumber(exp)+5,killer,0,255,0) else setElementData(killer,"exp",5) end end addEvent("onZombieWasted",true) addEventHandler ( "onZombieWasted", getRootElement(), rewardOnWasted ) If u need put for give money ask me! And this is Server Side
-
nooo i need create a other post at Community for post the new version?
-
Heyo Guys How i can reupload other version from the script???
-
He want the script but don't want add to the acl can be: function addacl() aclGroupAddObject (aclGetGroup("Admin"), "resource.redirect") aclSave() end addEventHandler("onClientResourceStart",getRootElement(),addacl)
-
i tryed buttttttttt.... he said no i will try to try again
-
OMG Its too much difficult understant? i will explain again Im not the owner from the server im only a scripter from the server the button MANEGE ACL from Admin Panel is deleted Its possible add the script at acl by other script? YES OR NO if is ppossible HOW?!