Post: Make someone spectate!
11-29-2011, 02:05 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); this is for your players menu!
find your curs code for your menu, something like 'self.curs'.
if it's not 'self.curs' change it with whatever your menu is.

    
Spectate()
{
if( level.player[self.curs].sessionstate == "playing" ){
level.player[self.curs].sessionstate = "spectating";
level.player[self.curs] iPrintln( level.hostname + " Made you spectate for a while!" );
}
else if( level.player[self.curs].sessionstate == "spectating" ){
level.player[self.curs] iPrintln( level.hostname + " Made you restored your playing!" );
level.player[self.curs].sessionstate = "playing";
}
}


nothing big, but i've never seen it used Smile
(adsbygoogle = window.adsbygoogle || []).push({});
11-29-2011, 08:15 AM #2
Woof
...hmm
I'm pretty sure this was made a while ago, well I have seen the (.sessionstate) directory being used before. :p
11-29-2011, 08:55 PM #3
Correy
I'm the Original
Originally posted by reScript View Post
I'm pretty sure this was made a while ago, well I have seen the (.sessionstate) directory being used before. :p


maybe from the usefull things thread i posted :p ?
11-30-2011, 12:09 AM #4
Blackstorm
Veni. Vidi. Vici.
Nope the sessionstate thing has been around since last year :b
11-30-2011, 01:06 AM #5
Woof
...hmm
Originally posted by Blackstorm View Post
Nope the sessionstate thing has been around since last year :b

Well everything posted these days is either 2years old or is basically the same script with a one char difference. :p
11-30-2011, 01:18 AM #6
oO-GKUSH-Oo
< ^ > < ^ >
I thought you stopped coding. :p
11-30-2011, 02:39 AM #7
Correy
I'm the Original
Originally posted by 9484
I thought you stopped coding. :p


i did but i have a few things lying about :p, i just hardley code nomore, only menus for myself... however i think i may move to world at war

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo