Try Posted October 10, 2011 Share Posted October 10, 2011 Hello Guys Im Back! (i think someone will say: SHE AGAIN NOOOOOO!) Hahaha sorry i had to do this ---------------------------------- Guy im doing a new resource for BaDwOlF and i need some help i scripted all but the debugscript is saing is having a error at client line: 103 and the error is getLocalPlayer() but at the line 103 its writed end only this! Here is the code: [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} localPlayer = getLocalPlayer() GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) g = guiGetText(GUIEditor_Edit[2]) b = guiGetText(GUIEditor_Edit[3]) setWaterColor(getLocalPlayer(),r,g,b,255) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) [sERVER] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent ( "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent ( "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent ( "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent ( "opening", getLocalPlayer()) end end end end end addCommandHandler("codm",open) Pleaseeeee help me!!!! Link to comment
Castillo Posted October 10, 2011 Share Posted October 10, 2011 That's because getLocalPlayer() is a client side only function. -- client side: --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) g = guiGetText(GUIEditor_Edit[2]) b = guiGetText(GUIEditor_Edit[3]) setWaterColor(getLocalPlayer(),r,g,b,255) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) -- server side: --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) I've fixed another error in yoru script also, you forgot to put twice "localPlayer" in the triggerServerEvent function(s). Link to comment
Try Posted October 10, 2011 Author Share Posted October 10, 2011 WOW? Thats too fast! Thanks Castillo! *-* Link to comment
Try Posted October 10, 2011 Author Share Posted October 10, 2011 Now a little stupid question if i need bind this how i do? function bind(source) bindKey(source,"F6","codm" end addEventHandler("onClientResourceStart",getRootElement(),bind) Link to comment
Castillo Posted October 10, 2011 Share Posted October 10, 2011 --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) Link to comment
Try Posted October 10, 2011 Author Share Posted October 10, 2011 Omg Castillo You Saved my lifeee! Thank you guy! Link to comment
Try Posted October 11, 2011 Author Share Posted October 11, 2011 Heyo Guys Idiot Question now! MY CLOSE BUTTON DON"T APEARS IT DON"T SHOW!!!! HELPP MEEE Link to comment
Try Posted October 11, 2011 Author Share Posted October 11, 2011 OK OK OK BUTTON PART IS SOLVED!!! BUT NOW WHY THE WATER COLOR DON"T SETTTTTTTTTTT!!!!!!! Link to comment
JR10 Posted October 11, 2011 Share Posted October 11, 2011 --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) g = guiGetText(GUIEditor_Edit[2]) b = guiGetText(GUIEditor_Edit[3]) setWaterColor(r,g,b,255) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) setWaterColor doesn't have a player argument. Link to comment
Try Posted October 11, 2011 Author Share Posted October 11, 2011 Ok Guys now im total fucked look this Its saing have a CRC error at client not opeining And About the button i don't need more, can bind f6 open and close? And i need a fix at water color i canttt fixxx SOME ONE HELP MEEE [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) g = guiGetText(GUIEditor_Edit[2]) b = guiGetText(GUIEditor_Edit[3]) setWaterColor(getLocalPlayer(),r,g,b,255) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) [sERVER] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) HELP MEEEEEEEEEE FASTTTTTTTTTTTTT Link to comment
Castillo Posted October 12, 2011 Share Posted October 12, 2011 --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(391,329,336,255,"Members Stuffs",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[15] = guiCreateButton(882,59,72,15,"CLOSE",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,318,222,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,42,303,21,"Create Fire",false,GUIEditor_Tab[1]) FireS = guiCreateEdit(121,15,89,19,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(FireS,2) GUIEditor_Label[1] = guiCreateLabel(14,16,99,17,"Fire Size: <1-15>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,90,157,18,"Water Color: ",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,115,55,20,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],3) GUIEditor_Edit[2] = guiCreateEdit(160,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Edit[3] = guiCreateEdit(86,115,55,20,"255",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,147,303,21,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Itens",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(9,9,123,17,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],0,255,255) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,31,83,17,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(119,31,83,17,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(226,31,83,17,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,57,83,17,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(119,57,83,17,"Night Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(226,57,83,17,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(10,91,108,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,115,83,17,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(119,115,83,17,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(226,115,83,17,"Love",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,142,83,17,"Money",false,GUIEditor_Tab[2]) --GUIEditor_Button[13] = guiCreateButton(119,142,83,17,"Dolphin",false,GUIEditor_Tab[2]) --GUIEditor_Button[14] = guiCreateButton(226,142,83,17,"Submarine",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then r = guiGetText(GUIEditor_Edit[1]) if r == "" then return end g = guiGetText(GUIEditor_Edit[2]) if g == "" then return end b = guiGetText(GUIEditor_Edit[3]) if b == "" then return end triggerServerEvent("setWater",localPlayer,localPlayer,r,g,b) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", getLocalPlayer()) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) addEvent("setWater",true) addEventHandler("setWater",root, function (client, r, g, b) if r and g and b then setWaterColor(tonumber(r),tonumber(g),tonumber(b),255) end end) Not sure if it'll work. Link to comment
Try Posted October 12, 2011 Author Share Posted October 12, 2011 Castillo: 4 thinks to say to you: You are the BEST! GUY HOW OLD YOU HAVEEE? HOW OLD OF PROGRAMATION? 16 years? 15 programation? Link to comment
Castillo Posted October 12, 2011 Share Posted October 12, 2011 Thank you, and you're welcome. P.S: I'm 16 years old, I have about 2 years learning I think. Link to comment
Try Posted October 12, 2011 Author Share Posted October 12, 2011 Ok ok ok ok i need other think! The Water Color is not setting correct! 1 2 3 RED GREEN BLUE [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(480,338,306,272,"Members Stuffs -- by Mari",false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,22,288,241,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Create/Set",GUIEditor_TabPanel[1]) GUIEditor_Grid[1] = guiCreateGridList(496,93,5,5,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(10,10,126,15,"Create Fire: <1-20>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],100,0,255) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,109,149,15,"Set Water Color: <0-255>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],100,0,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(10,34,64,18,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],2) GUIEditor_Button[1] = guiCreateButton(10,64,267,18,"Create Fire",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(12,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],3) GUIEditor_Edit[3] = guiCreateEdit(90,134,64,18,"0",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[3],3) GUIEditor_Edit[4] = guiCreateEdit(171,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[4],3) GUIEditor_Button[2] = guiCreateButton(10,167,267,18,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Items",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(11,11,122,16,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,36,79,15,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(197,36,79,15,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(103,36,79,15,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,62,79,15,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(103,62,79,15,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(197,62,79,15,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(11,93,122,16,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,118,79,15,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(104,118,79,15,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(197,118,79,15,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,145,79,15,"Money",false,GUIEditor_Tab[2]) GUIEditor_Label[5] = guiCreateLabel(7,181,274,17,"Any Bugs/Sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(104,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(197,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then red = guiGetText(GUIEditor_Edit[1]) if red == "" then return end green = guiGetText(GUIEditor_Edit[2]) if green == "" then return end blue = guiGetText(GUIEditor_Edit[3]) if blue == "" then return end setWaterColor(red,green,blue,250) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) Link to comment
Castillo Posted October 12, 2011 Share Posted October 12, 2011 What do you mean? is not setting the color you select? try adding debug outputs to see if the values are the correct. Link to comment
Try Posted October 12, 2011 Author Share Posted October 12, 2011 If i do 255 0 0 dont' go red go green, 0 255 0 its blue 0 0 255 do black Link to comment
Castillo Posted October 12, 2011 Share Posted October 12, 2011 I remember that something similar was happening in my c-panel, maybe is a MTA bug? Link to comment
BriGhtx3 Posted October 13, 2011 Share Posted October 13, 2011 --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(480,338,306,272,"Members Stuffs -- by Mari",false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,22,288,241,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Create/Set",GUIEditor_TabPanel[1]) GUIEditor_Grid[1] = guiCreateGridList(496,93,5,5,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Label[1] = guiCreateLabel(10,10,126,15,"Create Fire: <1-20>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],100,0,255) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(11,109,149,15,"Set Water Color: <0-255>",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],100,0,255) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(10,34,64,18,"2",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],2) GUIEditor_Button[1] = guiCreateButton(10,64,267,18,"Create Fire",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(12,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],3) GUIEditor_Edit[3] = guiCreateEdit(90,134,64,18,"0",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[3],3) GUIEditor_Edit[4] = guiCreateEdit(171,134,64,18,"255",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[4],3) GUIEditor_Button[2] = guiCreateButton(10,167,267,18,"Set Water Color",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Items",GUIEditor_TabPanel[1]) GUIEditor_Label[3] = guiCreateLabel(11,11,122,16,"Strange Weapons:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(11,36,79,15,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(197,36,79,15,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(103,36,79,15,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(11,62,79,15,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(103,62,79,15,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(197,62,79,15,"Infra Vision",false,GUIEditor_Tab[2]) GUIEditor_Label[4] = guiCreateLabel(11,93,122,16,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(11,118,79,15,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(104,118,79,15,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(197,118,79,15,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(11,145,79,15,"Money",false,GUIEditor_Tab[2]) GUIEditor_Label[5] = guiCreateLabel(7,181,274,17,"Any Bugs/Sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Button[13] = guiCreateButton(104,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(197,145,79,15,"NOT DONE",false,GUIEditor_Tab[2]) -- 1º Part Buttons function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then red = tonumber(guiGetText(GUIEditor_Edit[1])) if red == "" then return end green = tonumber(guiGetText(GUIEditor_Edit[2])) if green == "" then return end blue = tonumber(guiGetText(GUIEditor_Edit[3])) if blue == "" then return end setWaterColor(red,green,blue,250) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) Server --[[-- Script Made By Maria --]]-- -- 0º Part GUI --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) shark1 = createObject(1608,0,0,3) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) love = createObject(1240,0,0,0) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) money = createObject(1550,0,0,3) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) turtl1 = createObject(1609,0,0,3) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function open(source) triggerClientEvent (source, "opening", source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) addEvent("setWater",true) addEventHandler("setWater",root, function (client, r, g, b) if r and g and b then setWaterColor(tonumber(r),tonumber(g),tonumber(b),255) end end) Link to comment
Castillo Posted October 13, 2011 Share Posted October 13, 2011 What exactly did you change? because I see that you re-added water color event in server side, but never using it from client? Link to comment
Try Posted October 13, 2011 Author Share Posted October 13, 2011 ok ok this script past but now ITS V3 Guess Whatttt I need Help! * I need the setElementData to server side and working with the 2 edits the color and the other tag edit * And i need a help with the User Info idk where put it Link to comment
Try Posted October 13, 2011 Author Share Posted October 13, 2011 [server] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) x ,y, z = getElementPosition(source) shark1 = createObject(1608,x,y,z) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) xx, yy, zz = getElementPosition(source) love = createObject(1240,xx,yy,zz) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) xxx, yyy, zzz = getElementPosition(source) money = createObject(1550,xxx,yyy,zzz) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) xxxx ,yyyy, zzzz = getElementPosition(source) turtl1 = createObject(1609,xxxx,yyyy,zzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function su ( source ) xxxxx ,yyyyy, zzzzz = getElementPosition(source) su1 = createObject(1609,xxxxx,yyyyy,zzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SUBMARINE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sur", true ) addEventHandler( "sur", getRootElement(), su) function asd ( source ) xxxxxx ,yyyyyy, zzzzzz = getElementPosition(source) dol1 = createObject(1609,xxxxxx,yyyyyy,zzzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00DOLTHIN#ffffff! (1 min)",source,255,255,255,true) end addEvent( "dol", true ) addEventHandler( "dol", getRootElement(), asd) function open(source) acc = getAccountName(getPlayerAccount(source)) if acc == "Armadillo" or acc == "Driver4r" or acc == "jamer123" then triggerClientEvent (source, "opening", source) else acc1 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc1, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc2 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc2, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc3 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc3, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) [Client] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(491,314,351,344,"Member Stuffs --- by Maria",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,333,311,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User Info",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,11,38,16,"Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,31,11,15,"X:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(12,50,11,15,"Y:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(12,71,11,15,"Z:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(12,91,42,16,"Money:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(53,11,200,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(29,31,249,12,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(28,50,176,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(28,71,204,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(59,91,265,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(12,119,139,17,"Set Tag/Set Tag Color:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[11],0,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") --GUIEditor_Edit[1] = guiCreateEdit(11,149,71,21,"#00ff00",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],7) --GUIEditor_Label[12] = guiCreateLabel(87,151,26,17,"--->",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,100,255) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(117,149,116,21,"Your #00ff00[TAG] here!",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Button[1] = guiCreateButton(10,182,223,22,"Set Tag",false,GUIEditor_Tab[1]) GUIEditor_Label[13] = guiCreateLabel(45,218,244,56,"BADWOLF",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[13],"sa-header") GUIEditor_Tab[2] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Label[14] = guiCreateLabel(10,10,115,17,"Create Fire: <1-99>",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(10,30,40,20,"5",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],2) GUIEditor_Button[2] = guiCreateButton(56,30,269,20,"Create Fire",false,GUIEditor_Tab[2]) GUIEditor_Label[15] = guiCreateLabel(10,59,115,17,"Items:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(10,83,86,19,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(124,83,86,19,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(235,83,86,19,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(10,111,86,19,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(124,110,86,19,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(235,109,86,19,"Infrared",false,GUIEditor_Tab[2]) GUIEditor_Label[16] = guiCreateLabel(10,136,115,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,100,255) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(10,159,86,19,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(124,159,86,19,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(235,159,86,19,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(10,186,86,19,"Money Bag",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(124,186,86,19,"Dolphin",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(235,186,86,19,"Submarine",false,GUIEditor_Tab[2]) GUIEditor_Label[17] = guiCreateLabel(28,238,276,17,"Any bugs/sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,0) guiSetFont(GUIEditor_Label[17],"default-bold-small") -- 1º Part Buttons function fire(button, state) if (source == GUIEditor_Button[2]) then nun = guiGetText(GUIEditor_Edit[3]) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) end end addEventHandler("onClientGUIClick",getRootElement(),fire) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) setElementData(localPlayer,"userr",ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) xa,ya,za = getElementPosition(localPlayer) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) guiSetText(GUIEditor_Label[7],xa) guiSetText(GUIEditor_Label[8],ya) guiSetText(GUIEditor_Label[9],za) nam = getPlayerName(localPlayer) guiSetText(GUIEditor_Label[6],nam) mon = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[10],mon) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) Link to comment
BriGhtx3 Posted October 14, 2011 Share Posted October 14, 2011 What exactly did you change? because I see that you re-added water color event in server side, but never using it from client? No in the server script, i changed getLocalPlayer to source, so that the changecolor event is triggered and in the client file, i changed red, green, blue to "tonumber(guiGetText(..))" client function firewater(button, state) if (source == GUIEditor_Button[1]) then nun = guiGetText(FireS) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) setTimer(destroyElement,10000,1,fi) elseif (source == GUIEditor_Button[2]) then red = tonumber(guiGetText(GUIEditor_Edit[1])) if red == "" then return end green = tonumber(guiGetText(GUIEditor_Edit[2])) if green == "" then return end blue = tonumber(guiGetText(GUIEditor_Edit[3])) if blue == "" then return end setWaterColor(red,green,blue,250) end end addEventHandler("onClientGUIClick",getRootElement(),firewater) server : function open(source) triggerClientEvent (source, "opening", source) if (getElementData(source, "userr") == "[bW]") then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) Link to comment
Try Posted October 14, 2011 Author Share Posted October 14, 2011 ok ok this script past but now ITS V3 Guess Whatttt I need Help! * I need the setElementData to server side and working with the 2 edits the color and the other tag edit * And i need a help with the User Info idk where put it [CLIENT] --[[-- Script Made By Maria --]]-- -- 0º Part GUI GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(491,314,351,344,"Member Stuffs --- by Maria",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,24,333,311,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("User Info",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(12,11,38,16,"Name:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,31,11,15,"X:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(12,50,11,15,"Y:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(12,71,11,15,"Z:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,0,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(12,91,42,16,"Money:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(53,11,200,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,0,0) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Label[7] = guiCreateLabel(29,31,249,12,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Label[8] = guiCreateLabel(28,50,176,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[8],255,0,0) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Label[9] = guiCreateLabel(28,71,204,16,"----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(59,91,265,15,"-----",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Label[11] = guiCreateLabel(12,119,139,17,"Set Tag/Set Tag Color:",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[11],0,255,0) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(11,149,71,21,"#00ff00",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[1],7) GUIEditor_Label[12] = guiCreateLabel(87,151,26,17,"--->",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[12],0,100,255) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(117,149,116,21,"Your #00ff00[TAG] here!",false,GUIEditor_Tab[1]) guiEditSetMaxLength(GUIEditor_Edit[2],25) GUIEditor_Button[1] = guiCreateButton(10,182,223,22,"Set Tag",false,GUIEditor_Tab[1]) GUIEditor_Label[13] = guiCreateLabel(45,218,244,56,"BADWOLF",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[13],"sa-header") GUIEditor_Tab[2] = guiCreateTab("Stuffs",GUIEditor_TabPanel[1]) GUIEditor_Label[14] = guiCreateLabel(10,10,115,17,"Create Fire: <1-99>",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[14],255,0,0) guiSetFont(GUIEditor_Label[14],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(10,30,40,20,"5",false,GUIEditor_Tab[2]) guiEditSetMaxLength(GUIEditor_Edit[3],2) GUIEditor_Button[2] = guiCreateButton(56,30,269,20,"Create Fire",false,GUIEditor_Tab[2]) GUIEditor_Label[15] = guiCreateLabel(10,59,115,17,"Items:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[15],0,255,0) guiSetFont(GUIEditor_Label[15],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(10,83,86,19,"Flower",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(124,83,86,19,"Dildo",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(235,83,86,19,"Vibrator",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(10,111,86,19,"Camera",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(124,110,86,19,"Night-Vision",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(235,109,86,19,"Infrared",false,GUIEditor_Tab[2]) GUIEditor_Label[16] = guiCreateLabel(10,136,115,17,"Stuffs:",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[16],0,100,255) guiSetFont(GUIEditor_Label[16],"default-bold-small") GUIEditor_Button[9] = guiCreateButton(10,159,86,19,"Shark",false,GUIEditor_Tab[2]) GUIEditor_Button[10] = guiCreateButton(124,159,86,19,"Turtle",false,GUIEditor_Tab[2]) GUIEditor_Button[11] = guiCreateButton(235,159,86,19,"Heart",false,GUIEditor_Tab[2]) GUIEditor_Button[12] = guiCreateButton(10,186,86,19,"Money Bag",false,GUIEditor_Tab[2]) GUIEditor_Button[13] = guiCreateButton(124,186,86,19,"Dolphin",false,GUIEditor_Tab[2]) GUIEditor_Button[14] = guiCreateButton(235,186,86,19,"Submarine",false,GUIEditor_Tab[2]) GUIEditor_Label[17] = guiCreateLabel(28,238,276,17,"Any bugs/sugestions --> [email protected]",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[17],0,255,0) guiSetFont(GUIEditor_Label[17],"default-bold-small") -- 1º Part Buttons function fire(button, state) if (source == GUIEditor_Button[2]) then nun = guiGetText(GUIEditor_Edit[3]) local x, y, z = getElementPosition(localPlayer) fi = createFire(x, y, z, nun) end end addEventHandler("onClientGUIClick",getRootElement(),fire) -- 2º Part Buttons function wep(button, state) if (source == GUIEditor_Button[3]) then triggerServerEvent ( "flower", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ( "dildo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ( "vibra", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ( "came", localPlayer, localPlayer) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ( "niv", localPlayer, localPlayer) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ( "ifn", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),wep) -- 3º Part Buttons function att(button, state) if (source == GUIEditor_Button[9]) then triggerServerEvent ( "sar", localPlayer, localPlayer) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ( "tu", localPlayer, localPlayer) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ( "love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ( "mo", localPlayer, localPlayer) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ( "dol", localPlayer, localPlayer) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ( "sur", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),att) function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent("tagg",localPlayer,localPlayer,col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) -- 4º Part Open function open() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) xa,ya,za = getElementPosition(localPlayer) end addEvent("opening",true) addEventHandler("opening",getRootElement(),open) guiSetText(GUIEditor_Label[7],xa) guiSetText(GUIEditor_Label[8],ya) guiSetText(GUIEditor_Label[9],za) nam = getPlayerName(localPlayer) guiSetText(GUIEditor_Label[6],nam) mon = getPlayerMoney(localPlayer) guiSetText(GUIEditor_Label[10],mon) -- 5º Part Close function close() if (source == GUIEditor_Button[15]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler("onClientGUIClick",getRootElement(),close) [sERVER] --[[-- Script Made By Maria --]]-- function flo ( source ) giveWeapon(source,14,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00FLOWER#ffffff!",source,255,255,255,true) end addEvent( "flower", true ) addEventHandler( "flower", getRootElement(), flo ) function dil ( source ) giveWeapon(source,10,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00DILDO#ffffff!",source,255,255,255,true) end addEvent( "dildo", true ) addEventHandler( "dildo", getRootElement(), dil ) function vib ( source ) giveWeapon(source,12,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00VIBRATOR#ffffff!",source,255,255,255,true) end addEvent( "vibra", true ) addEventHandler( "vibra", getRootElement(), vib ) function cam ( source ) giveWeapon(source,43,10) outputChatBox("#ff0000* #ffffffYou get one #00ff00CAMERA#ffffff!",source,255,255,255,true) end addEvent( "came", true ) addEventHandler( "came", getRootElement(), cam ) function nv ( source ) giveWeapon(source,44,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00NIGHT-VISION GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "niv", true ) addEventHandler( "niv", getRootElement(), nv ) function en ( source ) giveWeapon(source,45,1) outputChatBox("#ff0000* #ffffffYou get one #00ff00INFRARED GOGGLES#ffffff!",source,255,255,255,true) end addEvent( "ifn", true ) addEventHandler( "ifn", getRootElement(), en) function shar ( source ) x ,y, z = getElementPosition(source) shark1 = createObject(1608,x,y,z) attachElements(shark1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,shark1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SHARK#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sar", true ) addEventHandler( "sar", getRootElement(), shar) function lov ( source ) xx, yy, zz = getElementPosition(source) love = createObject(1240,xx,yy,zz) attachElements(love, source,0,0,1.5) setTimer(destroyElement,60000,1,love) outputChatBox("#ff0000* #ffffffYou get a #00ff00HEART#ffffff at your head! (1 min)",source,255,255,255,true) end addEvent( "love", true ) addEventHandler( "love", getRootElement(), lov) function mon ( source ) xxx, yyy, zzz = getElementPosition(source) money = createObject(1550,xxx,yyy,zzz) attachElements(money, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,money) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00MONEY BAG#ffffff! (1 min)",source,255,255,255,true) end addEvent( "mo", true ) addEventHandler( "mo", getRootElement(), mon) function tur ( source ) xxxx ,yyyy, zzzz = getElementPosition(source) turtl1 = createObject(1609,xxxx,yyyy,zzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00TURTLE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "tu", true ) addEventHandler( "tu", getRootElement(), tur) function su ( source ) xxxxx ,yyyyy, zzzzz = getElementPosition(source) su1 = createObject(1609,xxxxx,yyyyy,zzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00SUBMARINE#ffffff! (1 min)",source,255,255,255,true) end addEvent( "sur", true ) addEventHandler( "sur", getRootElement(), su) function asd ( source ) xxxxxx ,yyyyyy, zzzzzz = getElementPosition(source) dol1 = createObject(1609,xxxxxx,yyyyyy,zzzzzz) attachElements(turtl1, source,0,0,0) setElementAlpha(source, 0) setTimer(destroyElement,60000,1,turtl1) setTimer(setElementAlpha,60000,1,source,255) outputChatBox("#ff0000* #ffffffYou be a #00ff00DOLTHIN#ffffff! (1 min)",source,255,255,255,true) end addEvent( "dol", true ) addEventHandler( "dol", getRootElement(), asd) function tag ( source, client, col, ta ) setElementData(source,"userr",col,ta) end addEvent( "tagg", true ) addEventHandler( "tagg", getRootElement(), tag) function open(source) acc = getAccountName(getPlayerAccount(source)) if acc == "Armadillo" or acc == "Driver4r" or acc == "jamer123" then triggerClientEvent (source, "opening", source) else acc1 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc1, aclGetGroup("Admin")) then triggerClientEvent (source, "opening", source) else acc2 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc2, aclGetGroup("Moderator")) then triggerClientEvent (source, "opening", source) else acc3 = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc3, aclGetGroup("HeadAdmin")) then triggerClientEvent (source, "opening", source) end end end end end addCommandHandler("codm",open) addEventHandler("onPlayerJoin",root, function () bindKey(source,"F6","down",open) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in pairs(getElementsByType("player")) do bindKey(player,"F6","down",open) end end) Link to comment
BriGhtx3 Posted October 14, 2011 Share Posted October 14, 2011 I don't understand what you want. Could you explain it? Link to comment
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