Jump to content

BriGhtx3

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by BriGhtx3

  1. It did, but i still need the occupant of the vehicle.
  2. function Deliver_func( hitElementa, dim ) if getElementType(hitElementa) == "vehicle" then local veh = hitElementa local hitElement = getVehicleOccupant(hitElementa) end end Bad vehicle pointer at getVehicleOccupant
  3. Deliver = createMarker ( -2211.1455078125, 565.84979248047, 49.442939758301, "checkpoint", 7, 0, 125, 0, getRootElement() ) function Deliver_func ( hitElement, dim ) local veh = getPedOccupiedVehicle ( hitElement ) end addEventHandler ( "onMarkerHit", Deliver, Deliver_func ) I don't get it, why is there this error?
  4. Lol, then read the wiki and learn how to start
  5. local allPlayers = getPlayersInTeam ( theteam )
  6. Client local geld = tonumber(guiGetText(hoeheText)) if (geld > 4999) and (geld < 100001) then local zinssatz = tonumber(math.ceil(((geld/551.6*0.7)+0.3)/10)) triggerServerEvent( "kreditabsenden", getLocalPlayer(), geld, zinssatz) outputChatBox("bearbeite") Server function submitKredit(player, geld, zinssatz) local result = mysql_query(handler, "INSERT INTO kredit (Person, Kredit, Zinssatz, Restgeld) VALUES ('"..getPlayerName(source).."', '"..geld.."', '"..zinssatz.."', '"..geld.."')") if( not result) then outputDebugString("Error executing the query: (" .. mysql_errno(handler) .. ") " .. mysql_error(handler)) else mysql_free_result(result) end outputChatBox("Kredit erfolgreich beantragt! Schaue nun auf deinem Konto nach!", getPlayerName(source), 255,0,0) vioSetElementData ( source, "bankmoney", vioGetElementData ( source, "bankmoney" ) + geld ) end addEventHandler("kreditabsenden", getRootElement(), submitKredit) addEvent("kreditabsenden", true) When I press on the button, "bearbeite" shows, which means that the client function should be right. Just the server event, ist not triggered. There aren't any errors outputted, when I type debugscript 3. You should know that, vioSet/GetElementData is a global variable. The text in the server part isn't outputted whether, in the database.
  7. When you add your name as Console you aren't automaticly Admin you just have to add your name as Admin.
  8. function joinHandler() setPlayerTeam (source, YOURTEAM) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
  9. What the hell? I think you want to unbind F1, right? function unbindF1() unbindKey(source,"F1") end addEventHandler("onPlayerJoin",getRootElement(),unbindF1)
  10. BriGhtx3

    GUI Error

    First Fix : 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 --> blacks.2@hotmail.com",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) 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) 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) Second Fix --THIS IS THE SERVER FILE function tag ( thePlayer, col, ta ) setElementData(thePlayer,"userr",col,ta) end addEvent( "tagg", true ) addEventHandler( "tagg", getRootElement(), tag) --THAT IS THE CLIENT FILE function tag(button, state) if (source == GUIEditor_Button[1]) then ta = guiGetText(GUIEditor_Edit[2]) col = guiGetText(GUIEditor_Edit[1]) tiggerServerEvent(getLocalPlayer(),"tagg",getLocalPlayer(),col,ta) end end addEventHandler("onClientGUIClick",getRootElement(),tag) You triggered the Event wrong.
  11. BriGhtx3

    GUI Error

    I don't understand what you want. Could you explain it?
  12. BriGhtx3

    Question

    I think it would be easier with MySQL. Don't you have any code? When you use MySQL, you could use : SELECT MAX(kills) FROM players
  13. BriGhtx3

    GUI Error

    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)
  14. Is there any code? Did you put your name in acl group admin?
  15. BriGhtx3

    GUI Error

    --[[-- 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 --> blacks.2@hotmail.com",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)
  16. Are you sure, that your connecting data is right?
  17. So I got it. You/I forgot the setTimer in the "else" of "if not img then".
  18. I tried it exactly like this before. Now the image doesn't appear at all. Just like the text
  19. client function StrafHandler ( gesch, money ) GUIEditor_Label = {} img = guiCreateStaticImage(392,0,407,268,"Blitzer.png",false) guiSetAlpha(img,0.89999997615814) GUIEditor_Label[1] = guiCreateLabel(592,97,195,35,"Bahnhof",false) guiLabelSetColor(GUIEditor_Label[1],0,0,0) guiSetFont(GUIEditor_Label[1],"sa-header") setTimer(ausblenden, 3000, 1) end addEvent( "onStrafe", true ) addEventHandler( "onStrafe", getRootElement(), StrafHandler ) function ausblenden() guiSetVisible(img, false) end server local within = isElementWithinColShape( hitElement, circle) if within then local money = vioGetElementData(hitElement, "money") speedx, speedy, speedz = getElementVelocity (hitElement) actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) kmh = actualspeed * 180 geld = kmh/100*200 if kmh > 80 then triggerClientEvent(hitElement,"onStrafe", getRootElement(), kmh, geld) end end When I drive through the sphere the image appears. After 3 seconds it hides. When I drive through it a second time then it appears twice and doesn't hide.
  20. BriGhtx3

    Mybb Login

    First, this aren't stupid answers. Just add more information to your posts and don't flame if you want to get help -.- Second : Yes it is obvious. Why do you hash your salt again? You have to get your salt from db and JUST hash the pass from the gui.
×
×
  • Create New...