Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Try this: function createZombie ( x, y, z, rot, skin, interior, dimension ) if (table.getn( everyZombie ) < newZombieLimit ) then --this part handles the args if not x then return false end if not y then return false end if not z then return false end if z <= 0 then return false end if not rot then rot = math.random (1,359) end if not skin then randomZskin = math.random ( 1, table.getn ( ZombiePedSkins ) ) skin = ZombiePedSkins[randomZskin] end if not interior then interior = 0 end if not dimension then dimension = 0 end --this part spawns the ped local zomb = createPed (tonumber(skin),tonumber(x),tonumber(y),tonumber(z))--spawns the ped --if successful, this part applies the zombie settings/args if (zomb ~= false) then setTimer ( setElementInterior, 100, 1, zomb, tonumber(interior)) --sets interior setTimer ( setElementDimension, 100, 1, zomb, tonumber(dimension)) --sets dimension setElementData ( zomb, "zombie", true ) setElementData ( zomb, "forcedtoexist", true ) setTimer ( function (zomb, rot) if ( isElement ( zomb ) ) then setPedRotation ( zomb, rot ) end end, 500, 1, zomb, rot ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "status", "idle" ) end end, 2000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "forcedtoexist", true ) end end, 1000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then table.insert( everyZombie, zomb ) end end, 1000, 1, zomb ) triggerClientEvent ( "Zomb_STFU", getRootElement(), zomb ) return zomb --returns the zombie element else return false --returns false if there was a problem end else return false --returns false if there was a problem end end --check if a ped is a zombie or not function isPedZombie(ped) if (isElement(ped)) then if (getElementData (ped, "zombie") == true) then return true else return false end else return false end end addEvent( "onZombieLostPlayer", true ) function ZombieTargetCoords ( x,y,z ) setElementData ( source, "Tx", x, false ) setElementData ( source, "Ty", y, false ) setElementData ( source, "Tz", z, false ) end addEventHandler( "onZombieLostPlayer", getRootElement(), ZombieTargetCoords )
  2. Sorry for the first one the Submit button activated accidentally :v
  3. Try this: function zombieattack ( attacker, weapon, bodypart, loss ) if (attacker) then if getElementType ( attacker ) == "ped" then if (getElementData (attacker, "zombie") == true) then local playerHealth = getElementHealth ( getLocalPlayer() ) local playerArmor = getPedArmor ( getLocalPlayer() ) if playerArmor > 0 then setPedArmor ( source, playerArmor - loss ) elseif playerArmor == 0 then setElementHealth ( source, playerHealth - loss ) elseif playerHealth > 15 then setElementHealth ( source, playerHealth - 15 ) else triggerServerEvent ("playereaten", source, source, attacker, weapon, bodypart ) end end end end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), zombieattack )
  4. Hey, If you need help I can show you how to make it, just send me an PM or add me on skype. killer.68x
  5. There are some reasons: 1º-. Be near a lot of modded cars. 2º-. Have a large map modification, and it drops because it have's to charge. 3º-. Uknown Reason.
  6. For example you can take a look to the community scripts. You get an idea from them and you start your own login panel.
  7. Yes it could be possible. Contact me for help. Skype: killer.68x
  8. But he maybe has installed another O.S.
  9. Seems like i was right Attention: I didn't pass through that situation :v
  10. Eu te ajut pentru un pret foarte moderat.
  11. Ai o baza de date mysql sau folosesti internal.db? Ai facut tu sistem-ul de Interiors? Uitate la console sa vezi ce erori iti da si punele aici.
  12. He give's you host. Then he take's your scripts then goodbye.
  13. I think you're talking about Chaos Zombie Mode. Where the humans are in green and have much precision and zombies in red that have only knife and if you catch weapons from Humans you have little bit of precission. But CHAOS Servers don't exist anymore.
  14. Look It depends on the resources you want to put. For example if you're going to have a lot of mods and maps (Thing that I don't recommend) 10 slots and with lag. If you don't put a lot of mods and maps you can have there about 100/150 slots. In case you need help contact me at skype. killer.68x I will help you. And of course the Linux Server's are the best.
  15. You can't divide it. But if you have physical access to the machines, if you have a little bit of knowledge of hardware and how to mount it, you can combine them and make a powerful machine, and then install there the MTA Server. ("There's no other way")
  16. Put them into a folder with the name of the resource example: resources/yourscriptname/yourscriptfiles. And if it still don't working try to pass them to UTF-8.
  17. You have modified your ACL soo you need to adapt the Admin Panel to that ACL.
  18. The error I think is it on the 2nd argument, where's going to show you only Cities no Villages, you can try this. function theLocator() local allLocation = {"Las Venturas", "San Fierro", "Whetstone", "Flint County", "Red County", "Los Santos"} local theLocation = getElementZoneName( source ) for theKey, allLocation in ipairs(allLocation) do if (theLocation == allLocation) then killPed(source) end end end setTimer(theLocator, 1000, 0)
  19. Try this. bindKey ( thePlayer,"o","down", permission )
  20. Error discovered. Thanks for the help.
  21. Now the loginWindow appears and the content doesn't :&
  22. I try to do a GUI like the CIT's One.
  23. Can you put the code where show's the variable of the last survivor/winner of the match? We need more information for help you.
  24. Hello Everybody, I'm a noob doing Gui's so please, Can anybody show me how I do to make appear this gui? buttons = {} edits = {} addEventHandler("onClientResourceStart",resourceRoot, function() screenW, screenH = guiGetScreenSize() loginWindow = guiCreateWindow((screenW - 628) / 2, (screenH - 608) / 2, 628, 608, "COG Cops 'n' Robbers / Turfing / Civilians", false) guiWindowSetSizable(loginWindow, false) guiSetAlpha(loginWindow, 1.00) GUIEditor.label[1] = guiCreateLabel(0, 32, 119, 44, "Username:", false, loginWindow) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") edits["UserEdit"] = guiCreateEdit(119, 31, 178, 45, "", false, loginWindow) GUIEditor.label[2] = guiCreateLabel(0, 92, 119, 44, "Password:", false, loginWindow) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") edits["PassEdit"] = guiCreateEdit(119, 92, 178, 45, "", false, loginWindow) guiEditSetMasked(["PassEdit"], true) rememberUsername = guiCreateCheckBox(346, 47, 15, 15, "", false, false, loginWindow) rememberPass = guiCreateCheckBox(346, 107, 15, 16, "", false, false, loginWindow) GUIEditor.label[3] = guiCreateLabel(396, 47, 139, 15, "Remember Username", false, loginWindow) GUIEditor.label[4] = guiCreateLabel(396, 107, 139, 15, "Remember Password", false, loginWindow) buttons["login"] = guiCreateButton(10, 185, 173, 50, "Login", false, loginWindow) guiSetProperty(loginButton, "NormalTextColour", "FFFFFEFE") buttons["register"] = guiCreateButton(229, 185, 173, 50, "Create Account", false, loginWindow) guiSetProperty(["register"], "NormalTextColour", "FFFFFEFE") buttons["forgotPass"] = guiCreateButton(445, 185, 173, 50, "Forgot Password?", false, loginWindow) guiSetProperty(["forgotPass"], "NormalTextColour", "FFFFFEFE") GUIEditor.label[5] = guiCreateLabel(0, 267, 628, 64, "Cheating or Scamming will result in a 5 years ban.", false, loginWindow) guiSetFont(GUIEditor.label[5], "clear-normal") guiLabelSetColor(GUIEditor.label[5], 41, 205, 229) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.tabpanel[1] = guiCreateTabPanel(12, 322, 606, 276, false, loginWindow) GUIEditor.tab[1] = guiCreateTab("Server Updates", GUIEditor.tabpanel[1]) updatesInfo = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) guiGridListAddColumn(updatesInfo, "Date", 0.3) guiGridListAddColumn(updatesInfo, "Author", 0.3) guiGridListAddColumn(updatesInfo, "Description", 0.3) for i = 1, 2 do guiGridListAddRow(updatesInfo) end guiGridListSetItemText(updatesInfo, 0, 1, "24/07/2015", false, false) guiGridListSetItemText(updatesInfo, 0, 2, "Simple01", false, false) guiGridListSetItemText(updatesInfo, 0, 3, "Creation of the gamemode.", false, false) guiGridListSetItemText(updatesInfo, 1, 1, "-", false, false) guiGridListSetItemText(updatesInfo, 1, 2, "-", false, false) guiGridListSetItemText(updatesInfo, 1, 3, "-", false, false) GUIEditor.gridlist[1] = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Date", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Author", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Description", 0.3) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "24/07/2015", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Simple01", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "Creation of the gamemode.", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 3, "-", false, false) end guiSetVisible(loginWindow,true) showCursor(true) addEventHandler("onClientGUIClick",root,handleButtonClick) --handler to handle all client buttons that are clicked. end) Thanks for your time.
  25. I know, you can try to make a script that calculate's the distance in meters. And then script the rifle zoom for show you on a part of the screen the distance between the target and you.
×
×
  • Create New...