COORD Q

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

COORD Q

Post by Alcoholic »

Is there any way I can disable players using the "coord" function? They can use it in mp, right? I want to disable it under certain conditions.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

rethink

Post by tltrude »

You need to rethink the question. "coord" is short for "coordinate"--the numarical location of a point in a 3D space (XYZ), or 2D space (XY).
Tom Trude,

Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

I know I want to know if there is a way that prevents players from recieving coordinates in the console if they type coord.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

never thought about that one
but you might be able to try

while (1)
for (local.i=1;local.i>=$player.size;local.i++)
{if ($player[local.i] stufftext == "coord")
{kill $player[local.i]}}

just a thought :-s
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

LMAO haha ill try that.
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

if that results in the server crashing try:

while (local.time > 0)
for (local.i=1;local.i>=$player.size;local.i++)
{if ($player[local.i] stufftext == "coord")
{kill $player[local.i]}}

also, if the player doesn't die use:

{$player[local.i] kill}}

instead of

{kill $player[local.i]}}
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

or we could do this...


$player stufftext "kill"

or even!

$player stufftext "quit" :twisted:
TheShiznaeSpe
Major
Posts: 304
Joined: Wed Feb 05, 2003 11:45 pm
Location: US
Contact:

Post by TheShiznaeSpe »

mwhahaha

go with this:

$player[local.i] stufftext "kill"
$player[local.i] addkills -10000 // spearhead only
$player[local.i] stufftext "ui_hud 0"
$player[local.i] stufftext "say Please_kill_me"
wait .5
$player[local.i] stufftext "say I'm_ugly"
$player[local.i] stufftext "vid_restart"
$player[local.i] stufftext "bind w say I smell like dung"
wait 10
$player[local.i] stufftext "quit"
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

lmao. too bad i dont have spearhead... :(
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

you evil evil people :lol:

oh yeah, that will crash the script :oops:

remember to add a wait in there :P
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply