Post your scripting questions / solutions here
Moderator: Moderators
LiTe
Corporal
Posts: 34 Joined: Sat Dec 13, 2003 1:07 pm
Contact:
Post
by LiTe » Fri Dec 26, 2003 11:53 pm
If the players name was stored in local.player, how would you remove that players weapons(all of them)? Also, how do you have a player say something to all? I thought it was something like 'stufftext say "" ' but it wasn't working for me.
33rd[SS]SCpl.*LiTe*|AD|SP|
"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sat Dec 27, 2003 8:00 am
local.player takeall
local.string = "wtf where did my gun go omg lol"
local.player stufftext ("say " + local.string)
LiTe
Corporal
Posts: 34 Joined: Sat Dec 13, 2003 1:07 pm
Contact:
Post
by LiTe » Sat Dec 27, 2003 6:18 pm
Thanks, worked perfectly
How do I freeze his screen, but not freeze the whole server?
BTW, what is the difference between "set" and "seta"?
33rd[SS]SCpl.*LiTe*|AD|SP|
"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Dec 28, 2003 7:53 am
You can perfectly freeze a player with the 'local.player physics_off' command
. Later you can do 'local.player physics_on'.
seta (set archived) immediately writes the cvar value to a cfg file, set doesn't.