Post: Needing a code :)
09-17-2015, 06:12 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Ok so I am making an FFA azza menu for my friend and he wants the bots to have random level and random prestige, I tried recreating this and I kinda succeeded, I made them both but I couldn't figure out how to add them together without glitching out. So if anyone can provide me with this code I will be leaving credits for you.

P.S I know this is a simple code but I am stupid asf derp
(adsbygoogle = window.adsbygoogle || []).push({});
09-17-2015, 08:01 AM #2
Humble
Little One
Originally posted by NotDigit View Post
Ok so I am making an FFA azza menu for my friend and he wants the bots to have random level and random prestige, I tried recreating this and I kinda succeeded, I made them both but I couldn't figure out how to add them together without glitching out. So if anyone can provide me with this code I will be leaving credits for you.

P.S I know this is a simple code but I am stupid asf derp


Just add them as 2 seperate functions by the way release the Azza I would love to check it out Happy
09-17-2015, 08:08 AM #3
I did that and it was glitching out and I will after I get this function and also after my actual menu is released Smile
09-17-2015, 08:18 AM #4
FlavorModz
Do a barrel roll!
put in onplayerspawned()

    
if (self is_Bot())
{
self thread BotsRank();
wait 1;
self thread MonitorRank();
}


then

    

BotsRank()
{
self endon ("disconnect");
self.pers[ "rank" ] = level.rank;
self.pers[ "prestige" ] = level.prestige;

level.rank = 10 + randomInt(45);
level.prestige = randomInt(10);

self.botlevel = level.rank;
self.botpres = level.prestige;

self setdstat( "playerstatslist", "plevel", "StatValue",level.prestige );
self setdstat( "playerstatslist", "rank", "StatValue", level.rank );

self setrank( level.rank, level.prestige);
}

MonitorRank()
{
self endon ("death");
for(;Winky Winky
{
self.pers[ "rank" ] = level.rankagain;
self.pers[ "prestige" ] = level.prestigeagain;
self thread MonitorRank1();
wait 0.01;
}
}

MonitorRank1()
{
self waittill("death");
self waittill("player_spawned");

self setdstat( "playerstatslist", "plevel", "StatValue",level.rankagain );
self setdstat( "playerstatslist", "rank", "StatValue", level.prestigeagain );

self setrank( level.rankagain, level.prestigeagain);
}

09-17-2015, 05:33 PM #5
-Numb
You talkin to me?
Originally posted by FlavorModz View Post
put in onplayerspawned()

    
if (self is_Bot())
{
self thread BotsRank();
wait 1;
self thread MonitorRank();
}


then

    

BotsRank()
{
self endon ("disconnect");
self.pers[ "rank" ] = level.rank;
self.pers[ "prestige" ] = level.prestige;

level.rank = 10 + randomInt(45);
level.prestige = randomInt(10);

self.botlevel = level.rank;
self.botpres = level.prestige;

self setdstat( "playerstatslist", "plevel", "StatValue",level.prestige );
self setdstat( "playerstatslist", "rank", "StatValue", level.rank );

self setrank( level.rank, level.prestige);
}

MonitorRank()
{
self endon ("death");
for(;Winky Winky
{
self.pers[ "rank" ] = level.rankagain;
self.pers[ "prestige" ] = level.prestigeagain;
self thread MonitorRank1();
wait 0.01;
}
}

MonitorRank1()
{
self waittill("death");
self waittill("player_spawned");

self setdstat( "playerstatslist", "plevel", "StatValue",level.rankagain );
self setdstat( "playerstatslist", "rank", "StatValue", level.prestigeagain );

self setrank( level.rankagain, level.prestigeagain);
}



Bro why do you have such a big code for that?

I only have this code on onPlayerSpawned and it works good.
    if(self is_bot())
{
RandomPrestige = RandomIntRange(1,11);
RandomLevel = RandomIntRange(30,54);
self setrank( RandomLevel, RandomPrestige );
}

The following user thanked -Numb for this useful post:

John
09-18-2015, 11:44 AM #6
Thank you guys so much!
09-19-2015, 12:55 AM #7
itsSorrow
In my man cave
Originally posted by Numb View Post

Bro why do you have such a big code for that?

its condtionals xDDD
09-19-2015, 05:00 AM #8
Adrian
Adrian is back!
Originally posted by NotDigit View Post
Thank you guys so much!


Question has been answered.

-Thread Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo