Page 1 of 1

VIP script

Posted: July 9th, 2011, 8:09 am
by Goro92
can i be VIP in my map by script?
is this possible?

Code: Select all

 
CheckVIP()
{
            if( .....) //i think i need the function to get my guid
      {
         self.vip = true;
      }
      else
      {
         self.vip = false;
      }
   }
 
 

Re: VIP script

Posted: July 9th, 2011, 8:17 am
by iCYsoldier
Yeh, you can use the 'getGuid()' function

Code: Select all

if(self getGuid() == "*******************************") // Your GUID
{
    self.vip = true;
}
else
{
    self.vip = false;
}
or simpler

Code: Select all

self.vip = (self getGuid() == "*******************************");

Re: VIP script

Posted: July 9th, 2011, 9:38 am
by Randy
I dont think u can make yourself VIP with self.vip

because u need to set your status to cj["status"] == 1

with something like this

Code: Select all

if(self getGuid() == "*******************************") // Your GUID
{
    		self.cj["status"] = 1;
		self thread selfpromote("1");
}

selfpromote(rank)
{
	if(self.cj["status"] < 1 && rank == "1")
	{
		self.cj["status"] = 1;
	}
}

i didnt test it but i think it should work

Re: VIP script

Posted: July 9th, 2011, 10:22 am
by Goro92
Randy wrote:I dont think u can make yourself VIP with self.vip

because u need to set your status to cj["status"] == 1

with something like this

Code: Select all

if(self getGuid() == "*******************************") // Your GUID
{
    		self.cj["status"] = 1;
		self thread selfpromote("1");
}

selfpromote(rank)
{
	if(self.cj["status"] < 1 && rank == "1")
	{
		self.cj["status"] = 1;
	}
}

i didnt test it but i think it should work

k i'll try :thanks:

Re: VIP script

Posted: July 10th, 2011, 5:33 pm
by Goro92
does not work :(