• PointMod - Earn points and buy items with them!
    214 replies, posted
[QUOTE=Trivkz;24416678]If the folder is not there make it.[/QUOTE] and what about the lua file also make it ? [editline]09:59PM[/editline] [QUOTE=CombineGuru;21727112]As I said, this is not really meant to be stand-alone, it's to be used with other scripts and/or gamemodes. For what you want: [lua] hook.Add( "DoPlayerDeath", "Points", function( ply, attacker ) if ValidEntity( attacker ) and attacker:IsPlayer() then attacker:GivePoints( 5 ) end end ) [/lua] Stick that in sv/hooks.lua or make a new file in sv/ .[/QUOTE] That wuz what i needed !! [editline]11:04PM[/editline] Ow yeah how can i add player models like ppl buy a model and then become it ? ;l srry new at lua coding :(
K so i did this ; i try do add a model ( homer model ) So i did this [IMG]http://i37.tinypic.com/23ljl6v.jpg[/IMG] and when i go to my server, go to other level and then press f2 i see this [IMG]http://i36.tinypic.com/juwmsh.jpg[/IMG] what am i doing rong ? [editline]11:58PM[/editline]
What, nobody is gonna help me with my problem?
how can i add trails to the shop ;z
[QUOTE=Siemz;24449078]how can i add trails to the shop ;z[/QUOTE] Same question but also how can I change the key to F3 instead of F2 ?
This is pretty neat.
i still need help with my question, i need to add an entity to the shop guys... I dont want the wiki info either but a working example pasted here
With this store shop mod thing is it possible to add playermodels?
[QUOTE=Magicnacho;24512802]With this store shop mod thing is it possible to add playermodels?[/QUOTE] it is i will pm you :Z
If I am going to implement this into Combat Zone 1.1, how would I make it so builders can't purchase guns? I'd also need to rebind the buttons, to like f5. Any help here?
[QUOTE=Siemz;24449078]how can i add trails to the shop ;z[/QUOTE] [lua]PointMod.Items[1] = { "Plasma", "Have a plasma trail!", "trails/plasma.vmt", "plasma", 100, "PlayerSpawn", function(ply) ply.Trail = util.SpriteTrail(ply, 0, Color(255,0,0), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt") end }[/lua] Untested.
this is better ; PointMod.trails[3] = { "plasma", "plasma", "trails/plasma.vmt", "plasna", 500, "PlayerLoadout", function( ply ) local trail = util.SpriteTrail(ply, 0, Color(255,255,255), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt") end } Edit : Yes i got this from Persious ----- srry forgot to say that :$ --------
[QUOTE=Siemz;24626471]this is better ; PointMod.trails[3] = { "plasma", "plasma", "trails/plasma.vmt", "plasna", 500, "PlayerLoadout", function( ply ) local trail = util.SpriteTrail(ply, 0, Color(255,255,255), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt") end }[/QUOTE] ermmm that wont work with that typo... Try this one and see how it works out for ya. [QUOTE] PointMod.trails[3] = { "plasma", "plasma", "trails/plasma.vmt", "plasma", 500, "PlayerLoadout", function( ply ) local trail = util.SpriteTrail(ply, 0, Color(255,255,255), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt") [/QUOTE] Anyways, adding an entity to the menu? anyone?
[QUOTE=melindagreen;24638715]ermmm that wont work with that typo... Try this one and see how it works out for ya. Anyways, adding an entity to the menu? anyone?[/QUOTE] Try making it run a concommand spawning the ent with ent_create.
[u][b]I will give you a short tut here:[/b][/u] [b]Models:[/b] [lua] PointMod.Items[1] = { "Kleiner", "Spawn as Kleiner", "models/player/kleiner.mdl", "kleiner", 200, "PlayerSpawn", function( ply ) if ply:Team() == 1 then timer.Simple(0.2, function() GAMEMODE:PlayerSetModel( ply ) ply:SetModel( "models/player/kleiner.mdl" ) end) ply:ChatPrint("You are Kleiner!") end end } [/lua] [b]Trails:[/b] [lua] PointMod.Items[2] = { "plasma", "plasma", "trails/plasma.vmt", "plasma", 500, "PlayerLoadout", function( ply ) local trail = util.SpriteTrail(ply, 0, Color(255,255,255), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt") end } [/lua] [b](The trail code is the same code as Siemz because he got it from me :3) Anyways, it's realy simple ;) [/b] [b]And this is for Donators/VIP's only if you want it[/b] [lua] PointMod.Items[3] = { "Donator Nanosuit", "Become a nanosuit", "models/player/nanosuit/slow_nanosuit.mdl", "nanosuit", 0, "PlayerSpawn", function( ply ) if (ply:SteamID() == "STEAMID HERE") or (ply:SteamID() == "STEAMID HERE") or (ply:SteamID() == "STEAMID HERE") then timer.Simple(0.1, function() GAMEMODE:PlayerSetModel( ply ) ply:SetModel( "models/player/nanosuit/slow_nanosuit.mdl" ) end) end end } [/lua] [b]In case I can show you admin only trail:[/b] [lua] PointMod.Items[4] = { "Admin", "Admin Trail", "trails/admin1.vmt", "Admin", 0, "PlayerLoadout", function( ply ) if ply:IsAdmin() then local trail = util.SpriteTrail(ply, 0, Color(255,255,255), false, 15, 1, 4, 1/(15+1)*0.5, "trails/admin1.vmt") else end end } [/lua] [b]In another fact if you want to add only one special person, then try this:[/b] [lua] meta = FindMetaTable("Player") function meta:IsPersious() -- You can do whatever you want like 'IsYourName' if self:SteamID() == "YOUR STEAMID HERE" then return true end end [/lua] [b]After that put this:[/b] [lua] PointMod.Items[5] = { "blablabla", "Spawn as blablabla", "directory here", "blablabla", 55000, "PlayerSpawn", function( ply ) if ply:IsPersious() then -- You see that I'm using the meta now. timer.Simple(0.2, function() GAMEMODE:PlayerSetModel( ply ) ply:SetModel( "model directory goes here" ) end) ply:ChatPrint("") end end } [/lua] Good luck ;) Thanks to Jay and Stebbzor for making a part of this too..
Nice work Seth
Thank you for posting that persious i've been too busy to do anything to the addon recently
No problem, glad to help.
Anyone can PM me if they need help ;) [editline]05:26PM[/editline] Oh and CombineGuru, you like my edit of the shop? [URL=http://img72.imageshack.us/i/lolzxw.jpg/][IMG]http://img72.imageshack.us/img72/5554/lolzxw.jpg[/IMG][/URL]
[QUOTE=Persious;24666810]Anyone can PM me if they need help ;) [editline]05:26PM[/editline] Oh and CombineGuru, you like my edit of the shop? [URL="http://img72.imageshack.us/i/lolzxw.jpg/"][IMG]http://img72.imageshack.us/img72/5554/lolzxw.jpg[/IMG][/URL][/QUOTE] Damn. That's sexy. I want that.
Hehe, thanks ;)
I'm having a big problem. Whenever a player buys a gun, it shows up in their inventory after they die. However, they cannot click on it or use it any way shape or form. This only counts for guns, HP and armor work fine.
do you have a no weapons addon, or something like URestrict? Or do you have the weapons on spawn set properly in server.cfg?
[QUOTE=Persious;24666810]Oh and CombineGuru, you like my edit of the shop? <image>[/QUOTE] Looks great, good job!
Thanks. I realy like working on it and I'm having fun editing it.
Anyone like my edit? [IMG]http://www.patrick-nielsen.dk/shop.png[/IMG]
[QUOTE=melindagreen;24702123]do you have a no weapons addon, or something like URestrict? Or do you have the weapons on spawn set properly in server.cfg?[/QUOTE] I have a custom script that makes it so builders cannot use guns, but fighters can. It's not a gamemode or admin mod team. It's just a script.
[QUOTE] PointMod.Items[8] = { "SF-AACannon", "SF-AACannon", "models/Slyfo/flakvierling_blasternorm.mdl", "SF-AACannon", 60, "PlayerLoadout", function ENT:SpawnFunction( ply, tr ) if ( !tr.Hit ) then return end local ent = ents.Create( "SF-AACannon" ) ent:SetPos( tr.HitPos + tr.HitNormal * 16 ) ent:Spawn() return ent end } [/QUOTE] uhh help, i tried this and it took everything out of the shop
[QUOTE=Persious;24666810]Anyone can PM me if they need help ;) [editline]05:26PM[/editline] Oh and CombineGuru, you like my edit of the shop? [URL="http://img72.imageshack.us/i/lolzxw.jpg/"][IMG]http://img72.imageshack.us/img72/5554/lolzxw.jpg[/IMG][/URL][/QUOTE] like where you said your edit when infact i dod the models section i see this is your rage when you lose admin on my server then decide to give all the codes away Reason you lot your admin was because u banned about %50 of the server for saying a bad word to you and couldnt take a joke and you said you made most of that but i had all the tabs working all the powerups and everything else and the colour mod all you did was change few things class that u did it and when u said it broke so you said u had to redo it noticed that file was edited the day i went
Jay, stop complaining. I made the most of that. You realy dissapointed me. I coded for you because you said I would have Super. Then you took it away from me after.
Sorry, you need to Log In to post a reply to this thread.