In my zombie survival , i would like to have a damage system. That mean you start with guns normaly , and you need to do something like 5000 damage to get an arsenal upgrade and upgrades like that. Damage would be get from zombies npcs and zombies players
anyone reply please ? say something ?
why dont you just make the person get XP for each kill?
well i dont know how , i would like to make a zombie survival rpg with level and stuff but i cant code lua for now , im learning it , thats why i ask something more sample here .....
[editline]06:30PM[/editline]
Please any1 help me i really need this code to have fun !!!!!!!
Or you could, you know, not ask other people to write code for you? You won't learn by constantly asking us to spoonfeed you.
i just want to have it , because i want to play with this system for now , i need to learn lua in french so i need help from someone in my family , i think u dont care but what ever
The way you have phrased it sounds like you just want someone to make you your gamemode so you can carry on with having fun.
It's not as simple as you think.
Refer to: [url]http://wiki.garrysmod.com/?title=Main_Page[/url]
Hopefully searching through that can get you started.
Well i want it, and im learning lua , but im no there yet , and thanks i already know this site , but whatever if its too long and too hard just forget it ...
[url]http://www.facepunch.com/showthread.php?t=933261[/url]
Perhaps looking through that can help?
The way your asking is pretty disgusting. You will get no help if you request like a 4 year old wanting an xbox game. "I WANT IT, WHAT EVER". Grow up kid, and show some respect and manners.
Sorry , im french im not a pro in english :S well thank you very much much much for the site , it will help me alot ! im really sorry for my bad english :(
[editline]10:31PM[/editline]
Just one question , how i put that i have to kill zombies npcs to get points ?
I'm no pro with LUA, and please if someone sees my error, correct me :)
[lua]
if ent.GetClass("npc_zombie") then
-- Code here
end[/lua]
Well i found how to get points from npcs , but how i make that points restart to 0 everytime we change map
Two of the other coders in my community are French. They have almost perfect English, and are also self-taught. I don't see why you will have a problem learning, if you get off your lazy arse and try rather than copying and pasting code snippets and hoping they work.
well im 14 , i really want to learn lua so yeah , its possible and im not lazy , i just want some stuff if anyone know how so i could check the code and see learn about it. Well for now no one want to help me so i will continue learing lua and one day ill do it
You don't learn from copy + pasting other people's work. You need to get on some tutorials, and see what you can generate using the information said tutorial has given you.
If something goes wrong, then ask here.
yeah i will if i try so
If you really cannot be bothered ( as the requests sub-section has so politely proven ) then post a request for something in the sub-section for requests, more often than not ( if it's a simple request ) then you should eventually get it made.
i know i did , no one answered yet so im sure no one cares , idc ill make it
Isn't there an example of scaling damage depending on where a player/NPC is hit?
yeah theres one
Just use that then, much more efficient.
well it just do that u make more damage in the head and less damage in leg , what i need to do is something that take all damage that u do in the game , put it together and make a score with those damages. Ex : 5000 damage to zombies to get a desert eagle , 10000 for healing , etc .... not something that change the damages on depending where i shoot
Sorry, you need to Log In to post a reply to this thread.