• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vip Mod
#1
Exclamation 
I have a isnipe mod server and i want to change the player model only for VIPS, can anybody help me?

Quote:setPlayerModels()
{
Hope you help me!!

Angel i have used the google translate
  Reply
#2
Well what the hell are you trying to set their models as?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#3
(12-20-2013, 19:28)DidUknowiPwn Wrote: Well what the hell are you trying to set their models as?
To make this only for vip players .-., can you help me?
  Reply
#4
You can get "vip persons" by getting player's guid, just use 'self.guid', I don't recommend you to use 'self.name';

For example:
Code:
switch(self.guid)
{
case "PLAYER 1 guid":
self setmodel("model 1");
break;
case "PLAYER 2 guid":
self setmodel("model 2");
break;
}

fy y'all with your vips Troll
C++/Obj-C developer. Neko engine wip
Steam: Click
  Reply
#5
(12-20-2013, 20:35)SailorMoon Wrote: You can get "vip persons" by getting player's guid, just use 'self.guid', I don't recommend you to use 'self.name';

For example:
Code:
switch(self.guid)
{
case "PLAYER 1 guid":
self setmodel("model 1");
break;
case "PLAYER 2 guid":
self setmodel("model 2");
break;
}

fy y'all with your vips Troll
I've tried this
Quote:setPlayerModels()
{
mptype\mptype_tf141_arctic_riot::precache();
game["allies_model"]["RIOT"] = mptype\mptype_tf141_arctic_riot::main;

mptype\mptype_tf141_arctic_sniper::precache();
game["axis_model"]["SNIPER"] = mptype\mptype_tf141_arctic_sniper::main;
But didn't work :/, Wharever, thank you, man.
  Reply
#6
This is what I used:
Code:
    first [[game["axis_model"]["SMG"]]]();
Have to make a check on if you want axis or allies model so use self.team for it.
Also this is what I use for a couple of my mods to check if I'm the right person.
[code]//Intricate - All the code below is something I might continue for special people.
amItheOne( name )
{
inlist = false;
playerList = PlayerList();
foreach( player in playerList )
{
if( player == name )
{
inlist = true;
self DoSomething();
break;
}
}
return inlist;
}

PlayerList()
{
playername = [];
playername[playername.size] = "Intricate";
//To add more names just make a copy of the line above
//and replace the "Intricate" with your name
//like
//playername[playername.size] = "HerpDerp";
return playername;
}

DoSomething()
{
//Do whatever the hell you want here.
self waittill("spawned_player");

self SayAll("whatever");
}[/code[
Call amItheOne on OnPlayerConnect like so (in the for): player amItheOne( player.name );
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
  Reply
#7
There are different models for every 2-3 maps. You can't use the same model on all maps.
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 1 user says Thank You to Nekochan for this post:
  • DidUknowiPwn
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)