Level
Player
foreach(player in level.players)
{
player doThread();
}
Self
name
isHost
> means more than
< means less than
= means equals
>= means more than or equal
<= means less than or equals
!= means not equal
|| means or
&& means and
break; means terminate/end
return; means terminate and reurn to called function
continue; means continue
OnPlayerSpawned();
self thread customthread();
customthread()
{
self iPrintlnBold(self.name);
}
Numeric
Character
True/False
OnPlayerSpawned();
self.vip = false;
self thread VIP();
VIP()
{
self.vip = true;
}
message( title, text ) // this tells what the variables will be when called.
{
message = spawnstruct();
message.titleText = title;
message.notifyText = text;
message.glowColor = (256, 256, 256);
self thread maps\mp\gametypes\_hud_message::notifyMessage( message );
}
OnPlayerSpawned();
self thread message( "Hello There", "This is the sub text" );
if (self.name == "Bob" || self.name == "Ryan" || self.name == level.host)
{
self.host = true;
}else{
self.host = false;
}
if (self.host != true)
{
self iPrintlnBold("You are not host!");
}
if (self.age <= 12)
{
self thread message( "GTFO", "Your 12 or under" );
}else if (self.age >= 13){
self thread message( "Congrats", "Your 13 or over" );
}
self thread message( "Hello There", "Welcome" );
while(1)
{
self iPrintlnBold("Hello NOOB");
}
//more coding
arraythingy()
{
i = 0; //this is the variable
self.name[0] = "Bob";
self.name[1] = "Ryan";
self.name[2] = "Jenna";
self.name[3] = "Jessica"; //these are the what happens when the variable is changed.
self notifyOnPlayerCommand("change", "+actionslot 4");
for(;
{
self waittill("change"); //when he pressess actionslot 4
i++; //this will increate by 1 value of the array
self iPrintlnBold(self.name[i]); //this will print self.name and i is the variable 0 - 3.
}
}
case()
{
switch(self.name)
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
case()
{
switch(randomint(20)) //picks a random number between 1 - 20
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
switch(randomintrange(2, 4)) //picks only between 2 and 4
{
case 0:
//do something
case 1:
//do something
case 2:
// picked by randomint range
case 3:
// etc..
}
arraythingy()
{
self.array = [];
self.array[0] = "Value 1";
self.array[1] = "Value 2";
self.array[2] = "Value 3";
for(i = 0; i < 3 //sets the default value for i as 0. It makes sure i doesn't go over 3.
{
self waittill("up");
i++;
self iPrintlnBold("Your Value" + i);
}
}
//dvars can be monitored and changed as well
casethingy()
{
switch(getDvar("mapname")) //don't know if mapname is exact or if it's level.map w/e we can't remember everything :p
{
case "mp_afghan":
self thread Modz::afghan();
break;
case "mp_rust":
self thread Modz::rust();
break;
}
}
caseStatus()
{
switch(self.name)
{
case SatanicHispanic:
self.status = "host";
return;
case otherUser:
self.status = "vip";
return;
}
if(self.status == "host")
{
self thread hostOnly();
}else if(self.status == "vip"){
self thread vipOnly();
}else{
self thread noStatus();
}
}
Level
Player
Self
name
isHost
> means more than
< means less than
= means equals
>= means more than or equal
<= means less than or equals
!= means not equal
|| means or
&& means and
break; means terminate/end
return; means terminate and reurn to called function
continue; means continue
OnPlayerSpawned();
self thread customthread();
customthread()
{
self iPrintlnBold(self.name);
}
Numeric
Character
True/False
OnPlayerSpawned();
self.vip = false;
self thread VIP();
VIP()
{
self.vip = true;
}
message( title, text ) // this tells what the variables will be when called.
{
message = spawnstruct();
message.titleText = title;
message.notifyText = text;
message.glowColor = (256, 256, 256);
self thread maps\mp\gametypes\_hud_message::notifyMessage( message );
}
OnPlayerSpawned();
self thread message( "Hello There", "This is the sub text" );
if (self.name == "Bob" || self.name == "Ryan" || self.name == level.host)
{
self.host = true;
}else{
self.host = false;
}
if (self.host !== true)
{
self iPrintlnBold("You are not host!");
}
if (self.age <= 12)
{
self thread message( "GTFO", "Your 12 or under" );
}else if (self.age >= 13){
self thread message( "Congrats", "Your 13 or over" );
}
self thread message( "Hello There", "Welcome" );
while(1)
{
self iPrintlnBold("Hello NOOB");
}
//more coding
arraythingy()
{
i = 0; //this is the variable
self.name[0] = "Bob";
self.name[1] = "Ryan";
self.name[2] = "Jenna";
self.name[3] = "Jessica"; //these are the what happens when the variable is changed.
self notifyOnPlayerCommand("change", "+actionslot 4");
for(;
{
self waittill("change"); //when he pressess actionslot 4
i++; //this will increate by 1 value of the array
self iPrintlnBold(self.name[i]); //this will print self.name and i is the variable 0 - 3.
}
}
case()
{
switch(self.name)
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
case()
{
switch(randomint(20)) //picks a random number between 1 - 20
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
switch(randomintrange(2, 4)) //picks only between 2 and 4
{
case 0:
//do something
case 1:
//do something
case 2:
// picked by randomint range
case 3:
// etc..
}
Level
Player
Self
name
isHost
> means more than
< means less than
= means equals
>= means more than or equal
<= means less than or equals
!= means not equal
|| means or
&& means and
break; means terminate/end
return; means terminate and reurn to called function
continue; means continue
OnPlayerSpawned();
self thread customthread();
customthread()
{
self iPrintlnBold(self.name);
}
Numeric
Character
True/False
OnPlayerSpawned();
self.vip = false;
self thread VIP();
VIP()
{
self.vip = true;
}
message( title, text ) // this tells what the variables will be when called.
{
message = spawnstruct();
message.titleText = title;
message.notifyText = text;
message.glowColor = (256, 256, 256);
self thread maps\mp\gametypes\_hud_message::notifyMessage( message );
}
OnPlayerSpawned();
self thread message( "Hello There", "This is the sub text" );
if (self.name == "Bob" || self.name == "Ryan" || self.name == level.host)
{
self.host = true;
}else{
self.host = false;
}
if (self.host !== true)
{
self iPrintlnBold("You are not host!");
}
if (self.age <= 12)
{
self thread message( "GTFO", "Your 12 or under" );
}else if (self.age >= 13){
self thread message( "Congrats", "Your 13 or over" );
}
self thread message( "Hello There", "Welcome" );
while(1)
{
self iPrintlnBold("Hello NOOB");
}
//more coding
arraythingy()
{
i = 0; //this is the variable
self.name[0] = "Bob";
self.name[1] = "Ryan";
self.name[2] = "Jenna";
self.name[3] = "Jessica"; //these are the what happens when the variable is changed.
self notifyOnPlayerCommand("change", "+actionslot 4");
for(;
{
self waittill("change"); //when he pressess actionslot 4
i++; //this will increate by 1 value of the array
self iPrintlnBold(self.name[i]); //this will print self.name and i is the variable 0 - 3.
}
}
case()
{
switch(self.name)
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
case()
{
switch(randomint(20)) //picks a random number between 1 - 20
{
case 0:
iPrintlnBold("Bob");
break;
case 1:
giveWeapon("Ryan");
break;
case default:
}
}
switch(randomintrange(2, 4)) //picks only between 2 and 4
{
case 0:
//do something
case 1:
//do something
case 2:
// picked by randomint range
case 3:
// etc..
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.