ItsMods
Help VIP features - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help VIP features (/Thread-Help-VIP-features.html)

Pages: 1 2


VIP features - isokasi - 04-29-2011

So im still a newb at modding and im trying to enable VIP features based on someones XUID. This is what iv'e tried so far:
Code:
VIP() { if(self getxuid("1100001747b082d")); { self giveMaxAmmo("coltanaconda_mp", 0, false); } }
The problem is that everyone gets max ammo. Help would be appreciated.


RE: VIP features - iAegle - 04-29-2011

Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp", 0, false); }

edit:

something easier if you want to use multiple vips
Code:
addVip( xuid ) { foreach( player in level.players) { if(player.guid == xuid ) { player giveMaxAmmo("coltanaconda_mp"); } } }
then use
Code:
level addVip( xuid );
to add a vip


RE: VIP features - isokasi - 04-29-2011

(04-29-2011, 19:43)iAegle Wrote:
Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp", 0, false); }

didn't work, now i don't get ammo at all


RE: VIP features - iAegle - 04-29-2011

(04-29-2011, 19:49)isokasi Wrote:
(04-29-2011, 19:43)iAegle Wrote:
Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp", 0, false); }

didn't work, now i don't get ammo at all

isnt
Code:
self giveMaxAmmo("coltanaconda_mp", 0, false);
supposed to be:
Code:
self giveMaxAmmo("coltanaconda_mp");



RE: VIP features - isokasi - 04-29-2011

(04-29-2011, 19:50)iAegle Wrote:
(04-29-2011, 19:49)isokasi Wrote:
(04-29-2011, 19:43)iAegle Wrote:
Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp", 0, false); }

didn't work, now i don't get ammo at all

isnt
Code:
self giveMaxAmmo("coltanaconda_mp", 0, false);
supposed to be:
Code:
self giveMaxAmmo("coltanaconda_mp");
yea it is, i tried changing it but it still wont work

(04-29-2011, 19:52)isokasi Wrote:
(04-29-2011, 19:50)iAegle Wrote:
(04-29-2011, 19:49)isokasi Wrote:
(04-29-2011, 19:43)iAegle Wrote:
Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp", 0, false); }

didn't work, now i don't get ammo at all

isnt
Code:
self giveMaxAmmo("coltanaconda_mp", 0, false);
supposed to be:
Code:
self giveMaxAmmo("coltanaconda_mp");
yea it is, i tried changing it but it still wont work

i got this to work, but for some reason it doesnt work with the xuid
Code:
if(self.name == "MYNAME") { self giveMaxAmmo("coltanaconda_mp"); }



RE: VIP features - Nukem - 04-29-2011

Code:
if(self.guid == "xuid") { self giveMaxAmmo("coltanaconda_mp"); }

did you change the "xuid?"
otherwise you might want the code like this:

Code:
if(self.guid == "1100001747b082d") { self giveMaxAmmo("coltanaconda_mp"); }

or do what like iAegle and I did:

Code:
onPlayerSpawned() { etc... self CheckVip(); } CheckVip() { if(self.guid == "xuidgoeshere" || self.guid == "xuidgoeshere" || self.guid == "xuidgoeshere" || and add more..) self giveMaxAmmo("coltanaconda_mp"); }



RE: VIP features - isokasi - 04-29-2011

Still not working, heres the mod http://pastebin.com/4wLT3miY

EDIT: NVM it works now. When i started the game it said LPXUID 1100001747b082d, but when i typed "status" in the console it said 01100001747b082d (a zero infront of the XUID). But thanks for everyone that was helping <3


RE: VIP features - Xzite - 04-29-2011

if you use name as VIP do you have to add the colour tags or not? example: ^2E^1P^7I^8C or something



RE: VIP features - jorricks - 07-25-2011

Can you please explain me how to use it?


RE: VIP features - Killer_xD - 08-08-2012

it show me an error at
Quote:if(self.guid == "11000010471f66e")
but i dont know why, pls help me Heart