[QUOTE=Ste@mpunk;33663788][Lua]
hook.Add( "TTTBeginRound", "RoundStartPoints", function()
for _,ply in ipairs( player.GetAll() ) do
ply:PS_GivePoints( 7, "Round start" )
evolve:Notify( ply, evolve.colors.red, "You were awarded 7 points at the start of the round" )
end
end )
hook.Add( "PlayerDeath", "PointsForKill", function( victim, weapon, killer)
if( ValidEntity( killer ) and ValidEntity( victim ) ) then
if( killer:IsPlayer() and victim:IsPlayer() ) then
if( killer:IsTraitor() and not victim:IsTraitor() ) then
killer:PS_GivePoints( 10, victim:Nick().." was killed by "..killer:Nick() )
evolve:Notify( killer, evolve.colors.red, "You were awarded 10 points for killing an innocent" )
elseif( victim:IsTraitor() and not killer:IsTraitor() ) then
killer:PS_GivePoints( 10, victim:Nick().."[TRAITOR] was killed by "..killer:Nick().."[Inno.]" )
evolve:Notify( killer, evolve.colors.red, "You were awarded 10 points for killing a traitor" )
elseif( victim:IsTraitor() and killer:IsTraitor() ) then
killer:PS_TakePoints( 50, victim:Nick().."[TRAITOR] was team killed by "..killer:Nick().."[TRAITOR]" )
evolve:Notify( killer, evolve.colors.red, "You had 50 points taken from you for killing a fellow Traitor" )
else
evolve:Notify( killer, evolve.colors.red, "You killed an innocent!" )
end
end
end
[/lua][/QUOTE]
thak you :D
where i need to add this?
[QUOTE=mshorki;33671842]thak you :D
where i need to add this?[/QUOTE]
make a new .lua file in lua/autorun/server (call it tttbonuses or whatever you like) and paste it in there
[QUOTE=silentknight;33679772]make a new .lua file in lua/autorun/server (call it tttbonuses or whatever you like) and paste it in there[/QUOTE]
and thats all?
i think i need to whrite somewere "include("tttbonus.lua")"... or not ?
[QUOTE=mshorki;33682751]and thats all?
i think i need to whrite somewere "include("tttbonus.lua")"... or not ?[/QUOTE]
Nope! Thats only for clientside files. This is a serverside file. I suggest changing the name to sv_tttbonus.lua so that you know it's serverside.
[QUOTE=silentknight;33704133]Nope! Thats only for clientside files. This is a serverside file. I suggest changing the name to sv_tttbonus.lua so that you know it's serverside.[/QUOTE]
its not working for me! :(
i took the code, paste in a LUA file, called it sv_tttbonus, and puted it in lua/autorun/server .
how can i fix this?
I wish he still worked on this, was a great idea. :(
[QUOTE=_Undefined;32824891]I'm working on V2 of this with a better design and more features (like equipping and trail colours that you people keep moaning about!).
[editline]17th October 2011[/editline]
Don't count on it being released soon though.[/QUOTE]
Are u still cause everyone loves your work very much and it will be awesome if u could make a v2 !
The new RTD code done by my has the ability to use pointshop! If you would like, download here!
[URL]http://facepunch.com/threads/1128759?highlight=[/URL]
way to bump a tread
hey guys .. i wanted to use the Point Shop on my TTT gamemode... The Shop works, but the Points not... I can type in Ps_Pointhop Name amount... and then it says : You received ... Points by .... .. but i dont get points its still 0 Points... can someone help me please ? sry for my bad english =)
Hey guys! I just wana say the pointshop isn't dead! Me and _Undefined are working on it and there are 2 new hats
+Monitor head 2 (css one)
+football head
That are the ones we added, its not dead and if gmod 13 comes out it might go dead. But im trying to do everything I can to make it work in the new gmod! Have fun!
You have to be the owner of the server, or have privileges to do that. Instead of trying it in chat or console, try it in your server window in the cmd or console.
I have an problem.... Where are you supposed to add this? I added every file into the base of gmod (Not randomly lol) And it says
Registering gamemode 'Deathrun' derived from 'base'
Sending 8 'User Info' ConVars to server (cl_spewuserinfoconvars to see)
Scanning for downloaded fonts..
Reloading Particles..
Warning: Unhandled usermessage 'PointShop_Notify'
DataStreamClient: Unhandled stream PlayableGamemodes!Redownloading all lightmaps
Warning: Unhandled usermessage 'PointShop_Points'
you didn't install this correctly
Where abouts can I change the key which opens the menu?
I'm silly ;d
[QUOTE=Banana Lord.;35817779]you didn't install this correctly[/QUOTE]
How do i install it then? Do i place the folder somewhere?
Yeah, you place it in gamemodes because it's a gamemode. :rollseyes:
Common sense champ. It's an addon right? So you drop it in... addons.
Oh the world is so complex
[QUOTE=nick_9_8;35818291]Yeah, you place it in gamemodes because it's a gamemode. :rollseyes:
Common sense champ. It's an addon right? So you drop it in... addons.
Oh the world is so complex[/QUOTE]
I overlooked that. :facepalm:
And Shadow, Fuck off.
[QUOTE=nick_9_8;35818051]Where abouts can I change the key which opens the menu?
I'm silly ;d[/QUOTE]
I don't have it in front of me, but there's a config. I think it's near the settings for NPC Killing etc.
The Points aren't working? No one is earning any by cmd's OR killing...
I have negative points. How do I fix this? I gave myself like 5000000 points and it messed my points up. How to fix it?
why did you bump an old thread, *sigh* the command is "ps_setpoints (amount)" try setting it lower this time if it messed up
Looks great thanks
Who was such a problem? How can I fix it? [cl_pointshop.lua:178] attempt to index field '_Hats' (a nil value)
[QUOTE=Quake332;36340930]Who was such a problem? How can I fix it? [cl_pointshop.lua:178] attempt to index field '_Hats' (a nil value)[/QUOTE]
The project is dead. Please stop bumping this old thread :(
Let the fucking thread die.
[QUOTE=Crap-Head;36340962]The project is dead. Please stop bumping this old thread :([/QUOTE]
Sorry did not know. :/
[QUOTE=_Undefined;25847564]
[highlight]I AM NOT WORKING ON THIS ANYMORE.[/highlight]
[/QUOTE]
cool old stuff, 'nuff said.
i didn't even know i had an account on this site. holy shit.
[QUOTE=Quake332;36340930]Who was such a problem? How can I fix it? [cl_pointshop.lua:178] attempt to index field '_Hats' (a nil value)[/QUOTE]
Try:
[LUA]
if not type(ply._Hats) == "table" then
[/LUA]
Sorry, you need to Log In to post a reply to this thread.