The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Lua Code
Posted by: Duno | January 17, 2011 @ 4:47pm
Lua Code
[
Download
]
function GM:DoPlayerDeath( ply ) playermanhack( ply ) ply:SetTeam( 2 ) ply:Spectate( OBS_MODE_ROAMING ) ply:SpectateEntity( ents.FindByName( "plymanhack-" .. ply:Nick() ) ) ply:CreateRagdoll() end function playermanhack( ply ) local SpawnPos2 = {} SpawnPos2[1]= ents.FindByName("mha1")[1]:GetPos() SpawnPos2[2]= ents.FindByName("mha2")[1]:GetPos() SpawnPos2[3]= ents.FindByName("mha3")[1]:GetPos() SpawnPos2[4]= ents.FindByName("mha4")[1]:GetPos() local tableRand2 = table.Random( SpawnPos2 ) local manhackent2 = ents.Create( "npc_manhack" ) manhackent2:SetPos( tableRand2 ) manhackent2:SetAngles( ents.FindByClass("info_player_start")[1]:GetAngles() ) manhackent2:Spawn() manhackent2:SetColor(0, 46, 184, 255) manhackent2:SetName( "plymanhack-" .. ply:Nick() ) end
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.59 / 8
74 Votes
http://codebin.yi.org/1064
page generated in 0.00 seconds