VIP script

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

VIP script

Post by Goro92 » July 9th, 2011, 8:09 am

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;
      }
   }
 
 
Image

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: VIP script

Post by iCYsoldier » July 9th, 2011, 8:17 am

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() == "*******************************");

User avatar
Randy
CJ Wannabe
CJ Wannabe
Posts: 23
Joined: April 27th, 2011, 2:24 pm

Re: VIP script

Post by Randy » July 9th, 2011, 9:38 am

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
Image
Image

Vi Veri Veniversum Vivus Vici. "By the power of truth, I, while living, have conquered the universe." - Faust

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: VIP script

Post by Goro92 » July 9th, 2011, 10:22 am

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:
Image

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: VIP script

Post by Goro92 » July 10th, 2011, 5:33 pm

does not work :(
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests