Jump to content

Arnold-1

Members
  • Posts

    249
  • Joined

  • Last visited

Everything posted by Arnold-1

  1. another thing, why did you make 4 triggers, just make one with an argument: addEventHandler("onClientGUIClick", root, function() if (source == s1) then local row, col = guiGridListGetSelectedItem(gri) local ski = guiGridListGetItemText(gri, row, col) if (ski) then guiSetVisible(se, false) showCursor(false) triggerServerEvent ("onPlayerSelectTheSkinSkin",root,ski) end end end ) server: addEvent ("onPlayerSelectTheSkin", true) addEventHandler ("onPlayerSelectTheSkin", function (theSkin) if theSkin == "Skin 1" then setElementModel(source, 283) elseif theSkin == "Skin 2" then setElementModel(source, 282) elseif theSkin == "Skin3" then setElementModel(source, 285) elseif theSkin == "Skin4" then setElementModel(source, 287) end end)
  2. i have an idea for you, Make a label, and with onClientKey add every letter to that label, and it will only happen if you've clicked on that label, and if you click n any other thing you will lose the label control, that's not hard anyways.
  3. function wait ( ) waiting = textCreateDisplay() textDisplayAddObserver ( waiting, source ) local waitText = textCreateTextItem ( "Please Wait", 0.5, 0.5 ) textDisplayAddText (waiting, source ) end addEventHandler("onPlayerJoin",root,wait) function unwait () textDestroyDisplay(waiting) end addEvent("onUnwait",true) addEventHandler("onUnwait",root,unwait) --client destroy = true addEventHandler("onClientResourceStart",root, function () if destroy then triggerServerEvent("onUnwait",localPlayer) destroy = false end i think this must work.
  4. Arnold-1

    Green Candy

    Yeah, the same problem, it's because of the bad FPS, anyways i was planning to make a google earth script on eir but seems like it will fail since not everyone has a good FPS.
  5. Arnold-1

    Green Candy

    tested it today, and enjoyed the experience of that high draw distance, but not as high as in your SS, i couldn't see far things because of clouds, hope there is a way to remove them as you did in your SS. EDIT Fixed.
  6. Arnold-1

    help

    replace the option tab creation with this: Tab6.Tab = guiCreateWindow ( x / 2 - 310, y / 2 - 260, 620, 520, "Options", false ) bindKey("O","down", function () if (getPlayerSerial() == "Your Serial Here") then if (guiGetVisible(Tab6.Tab)) then guiSetVisible(Tab6.Tab,false) showCursor(false) else guiSetVisible(Tab6.Tab,true) showCursor(true) end end end )
  7. Arnold-1

    help

    well, you can also take the options tab and make it a window which can open with a command and only by your account.
  8. Arnold-1

    help

    Just remove from admin resource>client>gui> line 267, and things under it.
  9. player and thePlayer thePlayer isn't defined anywhere in you're code. ahh, mistake sorry. edited.
  10. function sad (player) setElementData(theMarker,"owner",getPlayerName(player).."'s Marker") end
  11. لا أعتقد أن احد ما زال يستخدم executeSQLQuery registryلأنها تعدل الـ :خاصة بك و هم DataBase التي تمكنك من عمل Functionsأقترح شرح الـ dbConnect dbPoll dbQuery dbExec dbFree
  12. LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
  13. well, i didn't read your whole code, but here is the correction for the last two things: createMarker = ((587.85107, -635.79315, 22.81306, "cylinder", 2.5, 0, 170, 0) this wont work, it must be markerName = createMarker(587.85107, -635.79315, 22.81306, "cylinder", 2.5, 0, 170, 0) and to take the criminal to the jail use spawnPlayer --Server side
  14. 1- you must make it -300 because full health is 1000 2- here is what you have to do health = getElementHealth(player) if health =< 300 then killPed(player) else setElementHealth(player,health - 300) end
  15. i think no need for this createTeam ( "SWAT", 0, 0, 255 ) local theTeam = getTeamFromName ( "SWAT" ) just make it local theTeam = createTeam ( "SWAT", 0, 0, 255 )
  16. Actually no, and triggering server sided events from client side with onClientRender is so wrong, if there is 10 players in the server the event would trigger 300 times in a second, anyways make sure the second argument in addEvent is true
  17. EDIT: ohh i should have noticed that function hi (player) if not isPlayerMuted(player) then outputChatBox("#FFFFFF<"..getPlayerName(player).."#ffffff>:Hey #00ffffGuys !",root,255,255,255,true) else cancelEvent() outputChatBox("You are muted.",player, 255, 255, 0,true) end end addCommandHandler ( "hi", hi )
  18. store it in a variable, i mean addEventHandler("onMarkerHit",skinshopmarker, function () model = getElementModel(source) end ) function cancel (thePlayer) setElementModel(thePlayer,model) end --idk which event would you use EDIT: WhoAmI, mine is better i think
  19. well he used onPlayerQuit that means he wanted it to show it to everyone, didn't he?
  20. Arnold-1

    Info!

    You forgot the "Times to execute" argument local minutes = 5 --for what period of time message would be shown on chatbox setTimer ( outputChatBox, minutes * 60000,0, "Message" ) it must be 0 so it will happen forever
  21. That was great! hope i could map like that!
×
×
  • Create New...