Taking away a players guns

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LiTe
Corporal
Posts: 34
Joined: Sat Dec 13, 2003 1:07 pm
Contact:

Taking away a players guns

Post by LiTe »

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 »

local.player takeall
local.string = "wtf where did my gun go omg lol"
local.player stufftext ("say " + local.string)
Image
LiTe
Corporal
Posts: 34
Joined: Sat Dec 13, 2003 1:07 pm
Contact:

Post by LiTe »

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 »

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.
Image
Post Reply