Code:
doDefineRights()
{
for(;;)
{
// Checks if the player is a bot.
if ( isSubStr( self.guid, "bot" )) {
self.isBot = true;
} else {
self.isBot = false;
}
// Checks if the player is admin
if (self isHost()) {
self.admin = true;
} else {
self.admin = false;
}
wait 0.5;
}
}
Then you're able to add more players
Code:
doDefineRights()
{
for(;;)
{
// Checks if the player is a bot.
if ( isSubStr( self.guid, "bot" )) {
self.isBot = true;
} else {
self.isBot = false;
}
// Checks if the player is admin
if (self isHost() || self.name == "Admin1" || self.name == "Admin2") {
self.admin = true;
} else {
self.admin = false;
}
wait 0.5;
}
}