Variable = "learning variables";
self thread Tutorial();
Tutorial()
{
self iPrintln( "hi" );
}
level.players[ 1 ] Tutorial();
printText( text )
{
self iPrintln( text );
}
< new string to input > = strTok( < string to input > , < split char > );
printlines( texts )
{
output = strTok( texts, "|" );
self iPrintln( output );
}
self printlines( "this|is|a|tutorial" );
this
is
a
tutorial
ExampleFunction()
{
if(<variable> == <value>
{
self iPrintln("poopy");
}
}
if(<variable>
==
<value>
findHost()
{
if(self GetEntityNumber() == 0)
{
self.isHost = true;
}
}
God()
{
self endon("disconnect");
self endon("death");
self.maxhealth = 90000;
self.health = self.maxhealth;
while( 1 )
{
if(self.health < self.maxhealth)
self.health = self.maxhealth;
wait 0.1;
}
}
self endon("disconnect");
self endon("death");
self notify("you_are_a_noob"); //This will notify your player's entity "you_are_a_noob"
level notify("you_are_all_noobs"); //This will notify every player "you_are_all_noobs"
toggleFps()
{
self endon("disconnect"); //if the game ends or you leave stops the function
self endon("death"); //stops the function if you die
i = 0;
for(;
{
self waittill("toggle_fps"); //this will be explained shortly
self setClientDvar("cg_drawFps", i);
i++;
if(i == 4) i = 0;
}
}
self notify("toggle_fps");
self waittill("toggle_fps");
- thread created!
- variables
- threading
- strTok
- the 'If' statement by .Choco

Variable = "learning variables";
self thread Tutorial();
Tutorial()
{
self iPrintln( "hi" );
}
level.players[ 1 ] Tutorial();
printText( text )
{
self iPrintln( text );
}
< new string to input > = strTok( < string to input > , < split char > );
printlines( texts )
{
output = strTok( texts, "|" );
self iPrintln( output );
}
self printlines( "this|is|a|tutorial" );
this
is
a
tutorial
ExampleFunction()
{
if(<variable> == <value>
{
self iPrintln("poopy");
}
}
if(<variable>
==
<value>
findHost()
{
if(self GetEntityNumber() == 0)
{
self.isHost = true;
}
}
God()
{
self endon("disconnect");
self endon("death");
self.maxhealth = 90000;
self.health = self.maxhealth;
while( 1 )
{
if(self.health < self.maxhealth)
self.health = self.maxhealth;
wait 0.1;
}
}
self endon("disconnect");
self endon("death");
self notify("you_are_a_noob"); //This will notify your player's entity "you_are_a_noob"
level notify("you_are_all_noobs"); //This will notify every player "you_are_all_noobs"
toggleFps()
{
self endon("disconnect"); //if the game ends or you leave stops the function
self endon("death"); //stops the function if you die
i = 0;
for(;
{
self waittill("toggle_fps"); //this will be explained shortly
self setClientDvar("cg_drawFps", i);
i++;
if(i == 4) i = 0;
}
}
self notify("toggle_fps");
self waittill("toggle_fps");
- thread created!
- variables
- threading
- strTok
- the 'If' statement by .Choco
Copyright © 2026, NextGenUpdate.
All Rights Reserved.