Jump to content

spoty

Members
  • Posts

    334
  • Joined

  • Last visited

Everything posted by spoty

  1. hi guys i am editing original scoreboard right now and i was wondering if i could put land flag into scoreboard like spoty from holland with holland flag in front of name at scoreboard i already have all flags from all country's who can help me?
  2. spoty

    HELP Hud

    if i edit a script i always give credits to the author
  3. spoty

    HELP Hud

    hi all i was woundering if someone could help me i wanne make a hud but can i just download a hud and edit it fully like how i want?
  4. nice thanks so thats why you woulnd help me at my private cars script but looks nice gonna test it
  5. spoty

    Modules

    modules are use full for Mysql
  6. ye that can also work but on my server i have some costum maded cars for my team bosses and co-owner and on the car i have also putted thier name and my team texture but i see alot of ppl using it i maded it to private to put the car id into the disabled cars like you can only spawn them by panel but i realy wanne make it like when i wanne use my costum car that i can spawn it and drive it and not like other ppl can still drive it beqause alot of players dont destroy the cars after use and then i got like 100 same cars and evryone can drive it
  7. no i know but thats all what i needed thanks i gonna search some tuts to do it on the good way and thnx for the information
  8. okay ty but how can i do that?
  9. hi there i need some help or information to know if its even possible i have a private cars script for ACL Group but i wanne make it like Private Car For player thats how i have it now please who can help me?
  10. spoty

    [Help]Blips

    okay but i am using mtasa lua scripter but cant find any usefull functions for it and i dont know all the functions
  11. spoty

    [Help]Blips

    hmm ok but i mean with acl like its search if player is in team then show player blip
  12. spoty

    [Help]Blips

    so then i did this good or bad? sorry i get sometimes confused about adding ACL things into script
  13. spoty

    [Help]Blips

    ok thnx i go try
  14. spoty

    [Help]Blips

    hi there i need some help i have a nice idea for my server its a drift server and with some drift teams but evry team have a base so i was wondering if its possible to make mini map blip that only the team can see from the base like ifplayer is FD then show localplayer blip or something who can help me ?
  15. change the name of scoreboard resource evry time you enter a other server it downloads the scoreboard so change youre scoreboard name to like scoreboard1
  16. spoty

    FIXED

    okay it works but is there a option to add in the script like if player enters afk it dissable the F1 panel and when player do /back its enabled again and same for /wp ?
  17. spoty

    FIXED

    ok so if i just only use addCommandHandler( "afk", function ( thePlayer ) setElementPosition( thePlayer, 1904.8403320313, 717.12438964844, 49.214366912842 ) setElementFrozen ( thePlayer , false ) outputChatBox( "You are now in Afk zone", thePlayer, 0, 255, 0 ) if takeAllWeapons ( thePlayer ) then setElementData ( thePlayer, "GodO.Health", "yep!" ) end end ) addEventHandler ("onPlayerDamage", getRootElement(), function () if getElementData ( source, "GodO.Health" ) == "yep!" then cancelEvent() end end ) addCommandHandler( "back", function ( thePlayer ) if isElementFrozen (thePlayer ) then setElementPosition( thePlayer, -2026.7408447266, 156.45680236816, 29.0390625 ) setElementFrozen ( thePlayer , true ) outputChatBox( "You are now Out Afk zone", thePlayer, 255, 0, 0 ) setElementData ( thePlayer, "GodO.Health", nil ) setElementFrozen (thePlayer, false ) end end ) it works only god mode not but that isnt a big prob and is it possible to dissable players in afk zone to spawn weapons? like dissable F1 and /wp ?
  18. spoty

    FIXED

    i think i am confused right now so i only need to use --client addCommandHandler("afk", function () setElementPosition(localPlayer, 1904.8403320313, 717.12438964844, 49.214366912842) outputChatBox( "You are now in Afk zone", localPlayer, 0, 255, 0 ) setElementData(localPlayer, "afk.godmode", true) setElementData(localPlayer, "afk.withinZone", true) triggerServerEvent("afk.takeWeps", localPlayer) end ) function onHit(plr) if (plr and isElement(plr) and getElementType(plr) == "player") then if (getElementData(plr, "afk.godmode") == true) then cancelEvent() end end end addEventHandler("onClientPlayerDamage", root, onHit) and --server function onHit() if (source and isElement(source) and getElementType(source) == "player") then if (getElementData(source, "afk.godmode") == true) then cancelEvent() end end end addEventHandler("onClientPlayerDamage", root, onHit)
  19. spoty

    FIXED

    ok now its working with god mode but now i have a error when i do /afk ERROR: Client (NL|Spoty) triggered serverside event afk.takeWeps, but event is not added serverside addCommandHandler( "afk", function ( thePlayer ) setElementPosition( thePlayer, 1904.8403320313, 717.12438964844, 49.214366912842 ) setElementFrozen ( thePlayer , false ) outputChatBox( "You are now in Afk zone", thePlayer, 0, 255, 0 ) end ) function takeWeps() takeAllWeapons(source) end function takeWeps() addEvent("afk.takeWeps", true) addEventHandler("afk.takeWeps", root, takeWeps) setElementData ( thePlayer, "afk.godmode", "true" ) end addEventHandler ("onPlayerDamage", getRootElement(), function () if getElementData ( source, "afk.godmode" ) == "true" then cancelEvent() end end ) addCommandHandler( "back", function ( thePlayer ) setElementPosition( thePlayer, -2026.7408447266, 156.45680236816, 29.0390625 ) setElementFrozen ( thePlayer , false ) outputChatBox( "You are now Out Afk zone", thePlayer, 255, 0, 0 ) setElementData ( thePlayer, "afk.godmode", nill ) -- this will remove god mode end )
  20. spoty

    FIXED

    it working great only for some reason i dont get godmode when i do /afk
  21. spoty

    FIXED

    i am soo sorry guys but can you guys mayby help me to make the client side i fail alot i am pretty noob at scripting
  22. spoty

    FIXED

    Oh thank you, I searched for it but Idk I couldn't find it. Here again: addCommandHandler( "afk", function ( thePlayer ) setElementPosition( thePlayer, 1904.8403320313, 717.12438964844, 49.214366912842 ) setElementFrozen ( thePlayer , true ) outputChatBox( "You are now in Afk zone", thePlayer, 0, 255, 0 ) if takeAllWeapons ( thePlayer ) then setElementData ( thePlayer, "GodO.Health", "yep!" ) end end ) addEventHandler ("onPlayerDamage", getRootElement(), function () if getElementData ( source, "GodO.Health" ) == "yep!" then cancelEvent() end ) Its not client side script, its server side. and if i wanne make a teleporter to main spawn like addCommandHandler( "back", function ( thePlayer ) setElementPosition( thePlayer, -2026.7408447266, 156.45680236816, 29.0390625 ) setElementFrozen ( thePlayer , true ) outputChatBox( "You are now Out Afk zone", thePlayer, 255, 0, 0 ) and also take off god mode then
  23. spoty

    FIXED

    i know i just sayed client in place of server sometimes i am just dump as f*ck
  24. spoty

    FIXED

    i go try that now after i finished the client side and meta.xml hope it works
×
×
  • Create New...