Post: how to code this ?
10-29-2015, 02:03 PM #1
ksa_7ooo7
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); Hello Smile

i want help with this code

    
doMaster
{
self.pres[ "prestige" ] = self.maxprestige;
self setdstat( "playerstatslist", "plevel", "StatValue", self.maxprestige );
self setrank( self.maxprestige );
self iPrintln("^6Max Prestige Set !")
}

doRank
{
self.pres[ "rank" ] = self.maxrank;
self setdstat( "playerstatslist", "rank", "StatValue", self.maxrank );
self setrank( self.maxrank );
self iPrintln("^6Level 55 Set")
}


i want it like this

if player prestige = maxprestige than kick
if player rank = maxrank than kick
els

do nothing
10-29-2015, 03:38 PM #2
itsSorrow
In my man cave
Originally posted by 7ooo7 View Post
Hello Smile

i want help with this code

    
doMaster
{
self.pres[ "prestige" ] = self.maxprestige;
self setdstat( "playerstatslist", "plevel", "StatValue", self.maxprestige );
self setrank( self.maxprestige );
self iPrintln("^6Max Prestige Set !")
}

doRank
{
self.pres[ "rank" ] = self.maxrank;
self setdstat( "playerstatslist", "rank", "StatValue", self.maxrank );
self setrank( self.maxrank );
self iPrintln("^6Level 55 Set")
}


i want it like this

if player prestige = maxprestige than kick
if player rank = maxrank than kick
els

do nothing


It won't stick lol
10-29-2015, 03:40 PM #3
ksa_7ooo7
Maggbot timeout!
Originally posted by GentleSlugger View Post
It won't stick lol


i know but you will see what i will do if you helped me plz Smile
10-29-2015, 08:59 PM #4
itsSorrow
In my man cave
Originally posted by 7ooo7 View Post
i know but you will see what i will do if you helped me plz Smile


after setting the rank just kick them... Not hard
10-29-2015, 09:19 PM #5
BullyWiiPlaza
Climbing up the ladder
Originally posted by 7ooo7 View Post

i want it like this

if player prestige = maxprestige than kick
if player rank = maxrank than kick
els

do nothing

This is really easy to do.
    kickMaxRankPlayer(player)
{
if(player.pers["prestige"] == player.maxPrestige || player.pers["rank"] == player.maxRank)
{
kick(player getEntityNumber());
}
}

People, it's pers and not pres. Horrible copy and paste mess from the You must login or register to view this content.!
Last edited by BullyWiiPlaza ; 10-29-2015 at 09:23 PM.

The following 2 users say thank you to BullyWiiPlaza for this useful post:

-Numb, ksa_7ooo7
10-31-2015, 10:56 AM #6
ksa_7ooo7
Maggbot timeout!
Originally posted by BullyWiiPlaza View Post
This is really easy to do.
    kickMaxRankPlayer(player)
{
if(player.pers["prestige"] == player.maxPrestige || player.pers["rank"] == player.maxRank)
{
kick(player getEntityNumber());
}
}

People, it's pers and not pres. Horrible copy and paste mess from the You must login or register to view this content.!


Thanks you are the best Smile
11-05-2015, 08:45 AM #7
ksa_7ooo7
Maggbot timeout!
Originally posted by BullyWiiPlaza View Post
This is really easy to do.
    kickMaxRankPlayer(player)
{
if(player.pers["prestige"] == player.maxPrestige || player.pers["rank"] == player.maxRank)
{
kick(player getEntityNumber());
}
}

People, it's pers and not pres. Horrible copy and paste mess from the You must login or register to view this content.!


sorry it did not work :(
11-05-2015, 09:46 AM #8
BullyWiiPlaza
Climbing up the ladder
Originally posted by 7ooo7 View Post
sorry it did not work :(

Alright. Change player.maxPrestige to level.maxPrestige and player.maxRank to level.maxRank and it should work.

The following user thanked BullyWiiPlaza for this useful post:

ksa_7ooo7
11-05-2015, 10:06 AM #9
ksa_7ooo7
Maggbot timeout!
Originally posted by BullyWiiPlaza View Post
Alright. Change player.maxPrestige to level.maxPrestige and player.maxRank to level.maxRank and it should work.


thanks you worked 100%
11-05-2015, 12:08 PM #10
Default Avatar
Roar
Guest
Originally posted by 7ooo7 View Post
thanks you worked 100%


Closing thread.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo