Hello guys, i'm looking for help! i want everytime a player spawn, then kill him
i tried that, but's it's not working!
it's kill him only in the first spawn...
[lua]
hook.Add("PlayerLoadout", "KillPlayers", function(ply)
ply:ConCommand("kill")
end)
[/lua]
[QUOTE=Anyome;45236141]Hello guys, i'm looking for help! i want everytime a player spawn, then kill him
i tried that, but's it's not working!
it's kill him only in the first spawn...
[lua]
hook.Add("PlayerLoadout", "KillPlayers", function(ply)
ply:ConCommand("kill")
print("Server Hacked by Lord Sawww")
end)
[/lua][/QUOTE]
[lua]print("Server Hacked by Lord Sawww")[/lua]
................?
[lua]
hook.Add("PlayerSpawn", "1337_h4x0r", function(ply)
ply:Kill()
end)
[/lua]
[editline]28th June 2014[/editline]
also; this is a great way to make people play your server.
[QUOTE=TylerB;45236150][lua]print("Server Hacked by Lord Sawww")[/lua]
................?
[lua]
hook.Add("PlayerSpawn", "1337_h4x0r", function(ply)
ply:Kill()
end)
[/lua]
[editline]28th June 2014[/editline]
also; this is a great way to make people play your server.[/QUOTE]
Probably he is co-owner or something or he have access to ftp now he is probably angry so he will do this thing.
İ Dont recommend you to help this guy.
[QUOTE=Justtr;45236207]İ Dont recommend you to help this guy.[/QUOTE]
not exactly hard to do this without help anyway, he's just too lazy to properly use the wiki.
hook.Add("PlayerLoadout", "KillPlayers", function(ply)
while true do
ply:ConCommand("kill")
end
print("Server Hacked by Lord Sawww")
end)
Try this
[QUOTE=DaRkWoRlD1337;45237092]hook.Add("PlayerLoadout", "KillPlayers", function(ply)
while true do
ply:ConCommand("kill")
end
print("Server Hacked by Lord Sawww")
end)
Try this[/QUOTE]
that's a great way to crash a server.
Lmao I fell out of my chair.
[QUOTE=TylerB;45237101]that's a great way to crash a server.[/QUOTE]
print("Server Crashed by DaRkWoRlD1337")
Dear me :rolleyes:
Lol im just kidding :D
[code]
for k, v in pairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
[/code]
this should work
[QUOTE=DaRkWoRlD1337;45237377]Lol im just kidding :D
[code]
for k, v in pairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
[/code]
this should work[/QUOTE]
yeah, once. if you run it manually.
it works for me
[IMG]http://i.hizliresim.com/rLPnA3.jpg[/IMG]
[QUOTE=DaRkWoRlD1337;45237411]it works for me[/QUOTE]
[QUOTE=TylerB;45237393]yeah, once. if you run it [B][I][U]manually[/U][/I][/B].[/QUOTE]
[code]
timer.Create( "kill", 0.1, 0, function()
for k, v in pairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
end)
[/code]
This will do it
I'm confused at what you're trying to do with this? Do you plan to do it to people on your own server or someone else's?
[QUOTE=DaRkWoRlD1337;45237486][code]
timer.Create( "kill", 0.1, 0, function()
for k, v in pairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
end)
[/code]
This will do it[/QUOTE]
or you could use my code that doesnt run shit uselessly.
[editline]28th June 2014[/editline]
not that it really matters, this is a pretty pointless thread honestly
I want to add that if you actually use the power of the internet which lets be honest you all should be able to do if your on a forum for coding. You should have the ability to actually search and find old FP threads which are similar or are exactly the same as this retarded one.
[lua]hook.Add("PlayerSpawn", "hahaa", function(ply)
if(ply:SteamID() == "STEAM_0:0:24012525") then
ply:Kill
end
end) [/lua]
Use that. Now added the end
Why have you guys rated me dumb? and why are you guys disagreeing?
[QUOTE=Icejjfish;45240666][lua]hook.Add("PlayerSpawn", "hahaa", function(ply)
if(ply:SteamID() == "STEAM_0:0:24012525") then
ply:Kill
end) [/lua]
Use that[/QUOTE]
You forgot to end the if statement. Or the function. Depends on the way you're looking at it, I guess.
[QUOTE=DaRkWoRlD1337;45237486][code]
timer.Create( "kill", 0.1, 0, function()
for k, v in pairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
end)
[/code]
This will do it[/QUOTE]
Stop trying, please.
[QUOTE=Zephruz;45242926]Stop trying, please.[/QUOTE]
why? im just trying to help
[QUOTE=DaRkWoRlD1337;45244331]why? im just trying to help[/QUOTE]
you shouldn't offer "help" if you don't know what you're doing.
Back when he internet didn't excist coders bought and looked at books. They also used something called a brain to deal with a problem. [url]http://images4.fanpop.com/image/photos/23200000/lol-anime-23211530-750-600.jpg[/url]
[highlight](User was banned for this post ("Unhelpful/Trolling" - Blazyd))[/highlight]
Sorry, you need to Log In to post a reply to this thread.