Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 07:24:34 PM
Home Help Login Register
News: Zombie Master 2 discussion

  Show Posts
Pages: [1]
1  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 03, 2011, 03:54:07 PM
Okay Im Doodlejump!
2  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:42:28 PM
Okay same here thanks and leave your steam id?? would be easyer to contact!
3  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:37:03 PM
So how are you getting it to work then ? running it through garrrysmod/settings/users?
4  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:32:57 PM
Uhm What ULX download are you using? If so can you give a link please? I might have a different version (or outdated)
5  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:20:09 PM
TTT resets players health on round start. SO, you want to:


function roundstartbenefits()
for k, v in ipairs(player.GetAll()) do
if not v:IsSpec() then
if v:IsUserGroup("VIP") then
                                v:Give( "weapon_ttt_health_station" )
v:SetHealth(200) -- Sets to 200 health
v:SetMaxHealth(200) -- Sets their max health to 200 too, useful for health machine
end
end
end
end
hook.Add("TTTBeginRound","newroundbenefits",roundstartbenefits)
hook.Add("PlayerSpawn","newroundbenefits",roundstartbenefits)



Sorry too say but this isnt working either im gonna restart the server again and try once more!
6  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:14:36 PM
Hmm will now try this ! will get back as soon as !

Thanks for helping!
7  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 09:10:55 PM

function IsVIP(ply)
    if ply:IsUserGroup("vip") then
          ply:SetHealth(200)
          ply:Give( "weapon_ttt_health_station" )
    end
end
hook.Add("PlayerSpawn", "VIP", IsVIP)


Perhaps?..


Unfortunately ... this doesn't work ... It spawns the player with 100hp still ... this is starting to be a pain -.- Any other ideas to get this working?
8  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 08:46:16 PM
I will try it thanks!
9  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 08:23:48 PM
Raneman ... Ive been coding for 2 years and have created many gamemodes but ive NEVER used fretta... ive never thought of doing it ... but i see where your coming from
10  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 08:20:32 PM
try hooking PlayerSpawn instead?


Ive seen that function on the fretta wiki... But like ive explained .. I know nothing of Fretta and dont know how to code it ... Phoenix would you be able to help me out and edit the code to fit with playerspawn?
11  Other / Trouble in Terrorist Town / Re: Help With Coding! on: February 02, 2011, 08:14:30 PM
The whole concept of this is bad, but anyway.


function IsVIP(ply)
    if ply:IsUserGroup("vip") then
          ply:SetHealth(200)
          ply:Give( "weapon_ttt_health_station" )
    end
end

hook.Add("PlayerLoadout", "VIP", IsVIP)



Now just use ULX or some admin mod and make a usergroup called "vip"


Thanks But it seems that it dosnt work!
I need it so that when a Player spawns ... it sees if there VIP and if they are then sets there hp to 200 and gives them the weapon!
Ive tried what youve said and it dosnt seem to work -.-

Thank you for trying,
if you want ... with the extra information ... would you be able to make your code better?
12  Other / Trouble in Terrorist Town / Re: Chicken Invasion(Aka, Magneto Thread) on: February 02, 2011, 07:28:54 PM
Comon Please!
13  Other / Trouble in Terrorist Town / Help With Coding! on: February 02, 2011, 07:24:43 PM
Im trying to get the TTT to give a player 200 health if they are on my vip list (garrysmod/settings/users.txt)

The group is named vip and after some work i have come up with this code ... But im not use to fretta coding ...
Please may someone go over my code or even make a new one? this was in my init.lua


local VIP = {}
function VIP( pl )
    if pl:IsUserGroup("vip") then
  pl:SetHealth(200)
  pl:Give( "weapon_ttt_health_station" )
end
end

hook.Add("PlayerLoadout", "VIP", VIP)


Like I said I am not use to fretta At ALL and wish to have a VIP mod up :D ... I would be HUGELY impressed by it if anyone can help me :D

Thank you ,
    Jordan!


Please contact me if you dont want to register :D

moenanimations@gmail.com
Pages: [1]


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.012 seconds with 19 queries.