Jump to content

glowdemon1

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by glowdemon1

  1. There's tons of RP servers and most of them are dead, I don't think your server will be/make any difference from other servers, AKA : You wont get a great playerbase. If you're not able to script, you're really going to get into trouble later on with your server, incase there's important bugfixes that need to be done, people hack into your server, etc...
  2. glowdemon1

    Please Help Me.

    https://forum.multitheftauto.com/viewtopic.php?f=114&t=48868 - you should be able to see it on the internet tab.
  3. "Note: unbindKey will only work on binds that were added by the same resource" - In other words,I'm afraid it's impossible, unless the resource itself bound the keys.
  4. BieHDC is right, the script is compiled, you'll have to find the author of it and ask him for a decompiled copy. @Solid, http://puu.sh/4Dng5.png - if that's what he means.
  5. Well, I feel like a yes, but only MTA moderators/administrators would get to use this. Counter-counter-argument : If a player gets banned from MTA and decides to ban evade. 1. Re-installing windows can be a pain in the ass sometimes due to program installation loss and it can take up to an hour or more depending on your computer. 2. Once that's done, the player can do whatever he wants to do until he decides to break the rules again and end up banning again. 3. Repeat, conclusion : Player doesn't have a life.
  6. https://wiki.multitheftauto.com/wiki/UnbindKey - read it carefuly tho.
  7. https://wiki.multitheftauto.com/wiki/BindKey Couple of examples are inside. bindKey ( player, "F1", "down", showGUI ) bindKey ( player, "F1", "up", deleteGUI ) Something like this.
  8. No clue about your first question. https://wiki.multitheftauto.com/wiki/SetTimer What I would do is create a function dedicated to the skin change, then setTimer(yourFunction, 5000,1) yourFunction = the function you want to execute 5000 = the time in miliseconds that the timer has to do before it executes yourFunction 1 = howmany times you want yourFunction to be executed, in this case only once.
  9. https://wiki.multitheftauto.com/wiki/AddEvent https://wiki.multitheftauto.com/wiki/TriggerEvent https://wiki.multitheftauto.com/wiki/TriggerClientEvent That should do, addEvent and triggerEvent/triggerClientEvent, then use addEventHandler.
  10. https://wiki.multitheftauto.com/wiki/GetPlayerCount - or you could use getElementsByType, but getPlayerCount would be easiler to use.
  11. glowdemon1

    Help

    if fNitroLevel == 0 then... ? Not the best scripter either, but I'm just giving you an idea.
  12. glowdemon1

    Farmer

    createTeam ( "farmer", 0, 255, 0 ) local Marker = createMarker ( 670.69952392578, 906.75018310547, -40.3984375, "cylinder", 1, 255, 255, 255, 0 ) local Elem = createObject ( 3409, 670.69952392578, 906.75018310547, -40.3984375, 90, 0, 0 ) function customOnMarkerHit( p ) local playerWeapon = getPedWeapon( p ) if ( playerWeapon == 23 ) then if ( isElement ( Elem ) ) then destroyElement ( Elem ) end if ( isElement ( Marker ) ) then destroyElement ( Marker ) end givePlayerMoney ( p, 5000 ) end end addEventHandler ( "onMarkerHit", Marker, customOnMarkerHit) Should work.
  13. @3NAD thanks but it still doesn't work. I suspect and I'm 99% sure its the triggerTrigger not triggering, I've slightly edited the code. Server: function mainFunction() fadeCamera(source, true,0) setPlayerBlurLevel(source, 255) setTimer(spawnPlayerLogin, 3000,1, source) end function spawnPlayerLogin(joinedPlayer) if not joinedPlayer then joinedPlayer = source end spawnPlayer(joinedPlayer, 1742.0826416016,-1943.5759277344,13.569787979126) setCameraTarget(joinedPlayer) showChat(source, true) outputChatBox("Welcome to "..getServerName().. ". Enjoy your stay") end addEventHandler("triggerTrigger", root, spawnPlayerLogin) addEvent("triggerTrigger", true) function setCameraOnPlayerJoin() showPlayerHudComponent ( source, "all", false) fadeCamera ( source, true, 1 ) setPlayerBlurLevel ( source, 20 ) -- setCameraMatrix ( source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 90.881813049316 ) setCameraMatrix ( source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316 ) showChat(source, false) end addEventHandler("onPlayerJoin", root, setCameraOnPlayerJoin) function giveWeaponToPlayer(thePlayer,command, weapon, amount) if not (weapon) then outputChatBox("Usage : /givewep WEAPON AMOUNT", thePlayer) else if not (amount) then outputChatBox("Usage : /givewep WEAPON AMOUNT", thePlayer) else giveWeapon ( thePlayer, weapon, amount, true ) end end end addCommandHandler ( "givewep", giveWeaponToPlayer ) Client : function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end function trigger() showCursor(false) guiSetVisible(logLogo, false) guiSetVisible(logBtn, false) triggerServerEvent("triggerTrigger", localPlayer) end function showLoginLogo() logLogo = guiCreateStaticImage(0,0,370,112, "logoWC.png", false) if logLogo then centerWindow(logLogo) showCursor(true) logBtn = guiCreateButton(350,280,120,30,"Press to join", false) guiSetFont(logBtn, "default-bold-small") guiSetAlpha(logBtn, 0.5) -- guiSetProperty(logBtn, "textColours", "#FFFFFF") addEventHandler("onClientGUIClick", logBtn, trigger, false) end end showLoginLogo () Please ignore the weapongiving thingy, I didn't remove it yet.
  14. Would be epic and awesome but the design is fugly.
  15. I don't know much about mySQL and stuff but I think it'd be best to back everything up every 30 minutes incase the server crashes or so. Doing this each second or each minute could cause some lag AFAIK.
  16. I'd say wait until Socialz's RP server is up and running, most servers are just uG/vG rip-offs filled with (unfortunate to say) noobs. I don't really see a future in MTA's roleplay scene anymore, its really sad as MTA gives some cool features SAMP doesn't have. It all went to shit when root died out and hundreds of servers started to "breed", amongst them few good looking servers but also ghetto, low-class servers. However if you can't wait, you should pay a visit to http://zombieroleplay.co.uk/zrp/page/home/ - This might not suit to you, but I can promise you top-notch RP in this server along with mature admins and players you don't see anywhere anymore.
  17. Updated and re-wrote the script, if I could get a little help with the custom event handlers, that'd be great as I've never done these before : Client : http://pastebin.com/Ck5veXs7 - server : http://pastebin.com/g8QpQiY3 - Thanks in advance.
  18. http://pastebin.com/wdRY5wRr - Not able to check on the errors as I cant /debugscript 3 and reconnect. I already removed to clientside onPlayerJoin as it was only a serverside event.
  19. You put "m" instead of "mm" at line 4 if that could be a cause also.
  20. http://www.rockstargames.com/V/ Not sure if they posted this before, but they update this daily with cool stuff such as pictures and even soundtracks of a radio.
  21. Alrighty, thanks for the info.
  22. Yeah, I've found the problem already. I was working in the wrong folder and was editting older files. This does mean people can still kill players but not NPC's right ?
  23. Hi, I'm trying to make it so that people cannot do damage to my peds but unfortunately this doesn't work, here's my code, its put client side FYI. -- function invPed() -- cancelEvent() -- end -- addEventHandler("onClientPedDamage",bikeShopPed,invPed) function cancelPedDamage ( attacker ) cancelEvent() -- cancel any damage done to peds end addEventHandler ( "onClientPedDamage", getRootElement(), cancelPedDamage ) Please ignore the commented part. Here's the code of the bikeShopPed function bikeShop(Elements) --peds bikeShopPed = createPed(50,700.40344,-519.20392, 16.33002) setElementRotation(bikeShopPed, 0,0,225) --Markers that show up in front of the peds. bikeShopPedMarker = createMarker(700.96649, -519.62012, 15.33363,"cylinder",1,255,0,255) --blips createBlipAttachedTo(bikeShopPed,55,1) --showroom vehicles lowriderBike = createVehicle(509, 698.6, -521.20, 16,0,0,225) bmxBike = createVehicle(481, 695.6, -521.20, 16,0,0,225) mountainbikeBike = createVehicle(510, 692.6, -521.20, 16,0,0,225) freezeElements() end
  24. This might not be what you asked, but check out https://forum.multitheftauto.com/viewtopic.php?f=118&t=53514
×
×
  • Create New...