Tech Lounge > General
Lua
zippo:
So i just found this combine sound menu, for roleplaying. but it only works on TnB, if annyone knows how to recode this, so you can use it in cider... Il give them admin and donator for free, on my server...
link: http://www.garrysmod.org/downloads/?a=view&id=82466
// Zippo
Philliam:
What makes it only work in TnB?
Ruben:
Well its rly simple :/
The code you give here its only client o:
that script just make the player Run a console command that send integer info to the server.
gets the player who call the command and play like.
With this u can get that sounds working but you need to make your own Sound table. ;)
Server side:
--- Code: -----Just Small Example
local sndIndex = { "SoundPath1", "SoundPath2", "SoundPath3" }
function PlayShizOnPlayer(p,c,a)
if a[1] then
if a[1] > 0 && a[1] <= 3 then
p:EmitSound(sndIndex[tonumber(a[1])], 70, 100)
else
p:PrintMessage( HUD_PRINTTALK, "You Have Written an Incorrect Sound Please try another" )
end
else
p:PrintMessage( HUD_PRINTTALK, "You Didnt Give Arguments Sorry, Try Again" )
end
end
concommand.Add("rp_playline", PlayShizOnPlayer)
-- Sound Path means the Path of the local sound You want to play, this Table will have 3 index values 1,2,3
--- End code ---
btw i dunno wut u mean with TnB? o.o
Banana Hat:
taco and banana script.
it's a private rp script held by tnb servers.
Ruben:
Well i can say i have no words for that derma panel code xD.
Haf funz =D
Navigation
[0] Message Index
[#] Next page
Go to full version