Jump to content

stefutz101

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by stefutz101

  1. Hello everybody . I maked a server and i have some problems : 1 ) i cant change server version . I want to put server on 1.5 but server go to 1.4 verseion . 2) Resources dont download and after some time you get kick .http://postimg.org/gallery/3i7s5yniq/1477c43a/ Please heeeeeelp :(
  2. Attempting to concatenate a boolean value outputChatBox("Playerul #ffffff"..getPlayerName(killer).."#ff0000 este suspectat de spawnkill!",root,255,0,0,true) I already tested this version but i test again .
  3. Yes , it works but dont work correclty . I want to create this script to output in chatbox who make spawnkill . If someone kill me when i dont have 3 minutes nothing happen . If i use /kill will show " Player stefutz101 is suspect for spawnkill "
  4. addEventHandler("onPlayerWasted",root,function(_,killer) local alivetime = getElementData(source,"alivetime") local name = getPlayerName(killer) if tonumber(alivetime)>3 then outputChatBox("Playerul #ffffff"..name.."#ff0000 este suspectat de spawnkill!",root,255,0,0,true) end end) Error at local name = getPlayerName(killer) . Please help TY
  5. How i can make money and Lvl to looks like that watch ? dxDrawText("$", sX*0.85, sY*0.11, sX*0.2, sY*0.2, tocolor(50, 255, 50, 255), sY/768,1, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(""..cash, sX*0.87, sY*0.11, sX*0.2, sY*0.2, tocolor(195, 195, 195, 255), sY/768,1, "pricedown", "left", "top", false, false, false, false, false)
  6. The same problem ... No errors or warnings
  7. x1=-357.10000610352 y1=1588.0999755859 z1=2683 local x, y, z function gotoloja(thePlayer) local accountname = getAccountName ( getPlayerAccount ( thePlayer )) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" )) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Moderator" )) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Helper" )) then if getElementData(thePlayer, "loja") == false then --check if is in loja x, y, z = getElementPosition(thePlayer) setElementPosition(thePlayer, x1, y1, z1) setElementData(thePlayer, "loja", true) -- set true else setElementPosition(thePlayer, x, y ,z) setElementData(thePlayer , "loja", false) -- set false end end end addCommandHandler("loja",gotoloja) If are up to 2 admins / helpers and they go in "loja" when they type /loja again they will be teleport at where was last person when he go in "loja" .
  8. Client side ? Are you sure ?... If i put it in client all pleople what connect on my server can see the script ...
  9. I tested already this version when i type first time /loja teleport me at x1 z1 y1 , when i type secound time nothing happen . No errors or warnings .
  10. http://iceimg.net/images/2015/08/02/mta ... -27-51.png I can go at x1 , y1,z1 but i cant go back at x y z , the same problem but now i have 1 warning. Ty for try But dont work 100 %
  11. This work 50% : this script teleport at x1,y1,z1 but dont it don't teleport back at first x y z ...Please help , Thank You a lot !
  12. stefutz101

    Duty

    Yes , lol thank you , but SuperModerators can't use this command
  13. stefutz101

    Duty

    Offduty dont work . And Supermoderators can't put on duty , lol .
  14. Oh , yes , thank you !
  15. Script dont have errors or Warnings but nothing happen ... again .
  16. Nothing happen . I want to be used only 1 time per life . (And this reset after player die ). Still don't work
  17. I dont get errors but Czech Backpack looks like in photo and players can use /vipitems how many times they want ...
  18. Hellov everyone . I just created a vip system and i want to make this command only 1 time / life , but didn't work And why Czech Backback looks like that ? function useAgain() local use = 0 end addEventHandler("onPlayerWasted", root , useAgain) function giveVipItems(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("VIP")) then if use == 0 then setElementData(thePlayer, "Map", 1) setElementData(thePlayer, "GPS", 1) setElementData(thePlayer, "Box of Matches", 1) setElementData(thePlayer, "Toolbox", 1) setElementData(thePlayer, "Watch", 1) setElementData(thePlayer, "Night Vision Goggles", 1) setElementData(thePlayer, "Infrared Goggles", 1) setElementData(thePlayer, "M4 Mag", 150) setElementData(thePlayer, "M4", 1) setElementData(thePlayer, "CZ 550 Mag", 25) setElementData(thePlayer, "CZ 550", 1) setElementData(thePlayer, "Medic Kit", 1) setElementData(thePlayer, "Morphine", 1) setElementData(thePlayer, "Painkiller", 2) setElementData(thePlayer, "CZ 550", 1) setElementData(thePlayer, "CZ 550 Mag", 30) setElementData(thePlayer, "Milk", 2) setElementData(thePlayer, "Camouflage Clothing", 1) setElementData(thePlayer, "Pizza", 2) setElementData(thePlayer, "Infrared Goggles", 1) setElementData(thePlayer, "Night Vision Goggles", 1) setElementData(thePlayer, "MAX_Slots" , 26 ) local use = 1 outputChatBox("VIP: Items set !", thePlayer, 50, 255, 0, false) end else outputChatBox("VIP: Only VIP users can use this command!", thePlayer, 255, 0, 0, false) end end addCommandHandler("vipitems", giveVipItems , thePlayer)
×
×
  • Create New...