Jump to content

zombienation

Members
  • Posts

    314
  • Joined

  • Last visited

Everything posted by zombienation

  1. now i get this.. [2012-02-05 00:23:16] SCRIPT ERROR: vuurwapen\serve.lua:4: 'then' expected near 'setPedOnFire' [2012-02-05 00:23:16] WARNING: Loading script failed: vuurwapen\serve.lua:4: 'then' expected near 'setPedOnFire'
  2. no i dont believe so, the only warnings i find from that lua is some trouble with "teamcolors" after death or chatting in local chat, but not rly something that refers to the lines for that weapon, but to be sure, i'll add the lines in a new lua and as a new resource, maybe it will work then, we'll see i'll let you know
  3. idd, a player, but i also tested it on a ped and a zombie, none of the three got fire or a chatmessage, neither did i.. but it was worth to try, i think it had some fun with it if it worked
  4. no message.. i just added it in serversite at other teamfunctions, i refreshedd resource and it restarted to, i also reconnected, shud i restart server for it?
  5. yes i'm sure yes its in server side, its in the lua with the other teamfunctions
  6. hmm its very usefull for me to see now what u mean with i did not used setpedonfire but i just tested it, and the player dont catch fire, i started with a medic script, i tought that was better to work with then what i tought before to do, it also hae a function to heal, i deleted some lines about healing cuz i tought it would block the fire or something --Medicheals function healFlowers (attacker, attackerweapon, bodypart, loss) theHealth = getElementHealth (source) if (attackerweapon == 14) and (loss > 1) and ( theHealth < 90 ) then setElementHealth ( source, 100 ) takePlayerMoney (source, 1000) givePlayerMoney (attacker, 1000) end end addEventHandler ("onPlayerDamage", getRootElement(), healFlowers )
  7. hey solidsnake, i tried this --predators function setPedonFire (attacker, attackerweapon, bodypart, loss) if (attackerweapon == 6) and (loss > 1) end end addEventHandler ("onPlayerDamage", getRootElement(), setPedOnFire ) when i choose predatorteam, i get the weapon id6 ( shovel ) when i hit a person he dont catch fire, can you show me where or what i forgot to add or did wrong please? thanks
  8. ok thanks i'll see what i can do with those commands, but i start tomorow, its getting late now i'll post a script when i'm done, working or not lol thx
  9. i got it from this https://community.multitheftauto.com/index.php?p= ... ls&id=2352 but i think its something with the markers, it can be something alse to but some of the markers i add work and some other dont
  10. Hello, I got this idea for a team called witches, with skin and weapon mod ( shovel to staff ) But what i try to do is when a witch hit a player with the staff, i want the player to catch fire. I tried to search and take the commandlines of the put player on fire function from c panel resource and i was experimenting with stuff from Legal system, cuz that script got an option that gives a function to a weapon.. But all i tried had no result lol, Is this.possible to do? If yes can anybody help me pls? Grts
  11. hello, i'd like to get a host on no1servers, but its my first time i'd host a server online, i need information about how to start and how i can make my server running there, and how do i work on it if i wanna change a scriptline? thanks
  12. no errors in console or script this is the original location if ( theDriver ) and ( theTruckTrailerID == 435 ) then outputChatBox ("Bring this drugs and games to survivors ( F11 @ RACEFLAG icons )", theDriver, 255, 0, 0, false) outputChatBox ("There are more then one drop offs", theDriver, 255, 0, 0, false) outputChatBox ("when u done one u need to come back here to get a new trailer", theDriver, 255, 0, 0, false) theFinishMarker = createMarker ( -480.59, -514.02, 23.51, "cylinder", 16, 0, 255, 0, 90, theDriver ) theFinishBlip = createBlip ( -480.59, -514.02, 23.51, 53, 2, 255, 0, 0, 255, 0, 99999.0, theDriver ) end these are some i added if ( theDriver ) and ( theTruckTrailerID == 584 ) then theFinishMarker = createMarker ( -2466.33, 2225.62, 0.87, "cylinder", 16, 0, 255, 0, 90, theDriver ) theFinishBlip = createBlip ( -2466.33, 2225.62, 2.87, 53, 2, 255, 0, 0, 255, 0, 99999.0, theDriver ) end if ( theDriver ) and ( theTruckTrailerID == 584 ) then theFinishMarker = createMarker ( 2615.10, 1706.85, 6.82, "cylinder", 16, 0, 255, 0, 90, theDriver ) theFinishBlip = createBlip ( 2615.10, 1706.85, 8.82, 53, 2, 255, 0, 0, 255, 0, 99999.0, theDriver ) end if ( theDriver ) and ( theTruckTrailerID == 584 ) then theFinishMarker = createMarker ( -787.38, 2421.50, 153.15, "cylinder", 16, 0, 255, 0, 90, theDriver ) theFinishBlip = createBlip ( -787.38, 2421.50, 155.15, 53, 2, 255, 0, 0, 255, 0, 99999.0, theDriver ) end if ( theDriver ) and ( theTruckTrailerID == 584 ) then theFinishMarker = createMarker ( 1317.84, 1266.36, 6.82, "cylinder", 16, 0, 255, 0, 90, theDriver ) theFinishBlip = createBlip ( 1317.84, 1266.36, 8.82, 53, 2, 255, 0, 0, 255, 0, 99999.0, theDriver ) end
  13. hello, when i try to add a trucker end mission location, some of the markers work but some others don't.. i work the same for all locations, i copied the original lines and changed the location coorinates, when the marker dont work, do i need to change the coordinates on some way or how can i fix this? thanks
  14. that is in my gamemode script, and weapons dont save after death, i wont ask it here if i know about the resource and if it would work with my mode, but thx for showing the weblink ! it do saves when u have weapons and reconnect
  15. ok i'll try it quick, just copy and paste, no replacing? Edit: cant make it work i tried this weaponSlots = 11 ammoSlot = {} gunSlot = {} for slot = 1, weaponSlots do if getPedWeapon ( player, slot ) then ammoSlot[slot] = getPedTotalAmmo ( player, slot ) gunSlot[slot] = getPedWeapon ( player, slot ) end end -- If you want save your WEAPON CODE later than you can use ElementData -> global for gun = 1, #gunSlot do if gunSlot[gun] ~= nil then setElementData(player, "weapon#"..gun, getWeaponNameFromID(gunSlot[gun]) setElementData(player, "ammo#"..gun, ammoSlot[gun]) end end and this addEventHandler("onPlayerWasted", root, function() local weapons = convertWeaponsToJSON(source) setElementData(source,"tempSkin",getElementModel(source)) setElementData(source,"tempWeapons",weapons) setTimer(spawn, 1800, 1, source) end ) function convertWeaponsToJSON(player) local weaponSlots = 12 local weaponsTable = {} for slot=1, weaponSlots do local weapon = getPedWeapon( source, slot ) local ammo = getPedTotalAmmo( source, slot ) if (weapon > 0 and ammo > 0) then weaponsTable[weapon] = ammo end end return toJSON(weaponsTable) end function giveWeaponsFromJSON(player, weapons) if (weapons and weapons ~= "") then for weapon, ammo in pairs(fromJSON(weapons)) do if (weapon and ammo) then giveWeapon(player, tonumber(weapon), tonumber(ammo)) end end end end
  16. so it wont work if i add it to my mode then? its not the play game mode..
  17. hello, i have a question, so will this work when i add these lines in the spawnscript i use? or do i need to replace it with something in the script? if i need to replace, can i show the spawn lines here? thx
  18. hello, i was looking for something that saves the weapons when a player die and spawns, i know how to add weapons when they die and spawn, but i cant find it to make it save.. can anyone help me pls? thx
  19. thx xeno solidsnake, shouldn't i add something extra in the line for the scoreboard? as exp points change, like zombiekills its like this in that script exports.scoreboard:scoreboardAddColumn("Level",getRootElement(),80) i tried also with getRootElement(),80) but it also dont show the points in scoreboard, the colum is still there
  20. hmm, just thinking, can u make the xp that it gives 10 xp for headshot and 5 for bodykill? its just an idea that came in my head rl quick
  21. oh cool thanks man will it also show the points in scoreboard then? i add these lines bottom in client file?
  22. i get the colum with EXP above it, but i cant get the exp points in it
  23. hey, in the server side of this script, i have found the lines for the scoreboard, exports.scoreboard:scoreboardAddColumn("Zombie kills") and other but if i wanna add xp points to the scoreboard, do i change zombie kills to XP points or XP or something alse? will just that line do it? thx
  24. thanks solidsnake, so i just make a new server side lua with that line in it?
×
×
  • Create New...