Sign in to follow this  
Followers 0
WabbaJ@ck

VIP script help

8 posts in this topic

Hi. I've been having problems with the VIP for my girlfriend Mist. When she devmaps the map she doesn't get the weapon and model.

 

Script:

vip()
{	
	level.accepted1 = "4021c83b"; //Mist

	while (1)
	{
		level waittill( "player_spawn", player );
		
		friend = getSubStr(player getGuid(), 24, 32);
		
		if((friend == level.accepted1))
		{	
            wait 1;
			player detachAll();
			player setModel("captainamerica");
			player SetViewModel("captainamericaviewhands");
			player iprintln("Hey ^3Mist");
			iprintln("^3Mist ^7entered the game!");

		}
		if((friend == level.accepted1) && level.freerun == false && player.pers["team"] == "allies")
		{
		 player giveWeapon("m1014_mp");
		 player GiveMaxAmmo("m1014_mp");
		 wait .05;
		 player SwitchToWeapon("m1014_mp");
		}
	}
}

There's no errors either. It works when I just give the player a weapon and model when spawning.

0

Share this post


Link to post
Share on other sites

As stated in SB, GUID's aren't recognized in devmap, because there is no need to tell you apart from another player. When played on a server, the script should work if there aren't any errors. I have a similar script in Shipment, and the same thing happened with me.

0

Share this post


Link to post
Share on other sites

As stated in SB, GUID's aren't recognized in devmap, because there is no need to tell you apart from another player. When played on a server, the script should work if there aren't any errors. I have a similar script in Shipment, and the same thing happened with me.

Can making a LAN server work? Or adding scr testclients? I think it worked with the clients.

0

Share this post


Link to post
Share on other sites

As stated in SB, GUID's aren't recognized in devmap, because there is no need to tell you apart from another player. When played on a server, the script should work if there aren't any errors. I have a similar script in Shipment, and the same thing happened with me.

BTW how did you make shipment? I mean, how did you get the map file? You didn't recreate the whole map did you :D

0

Share this post


Link to post
Share on other sites

Doesn't /map work or does the same stuff in /devmap still apply...?

0

Share this post


Link to post
Share on other sites

BTW how did you make shipment? I mean, how did you get the map file? You didn't recreate the whole map did you :D

 

It's a port that somebody did/remade it. Idk, either way it was a really early version of the mp map shipment that I used and then had to add a lot of stuff.

0

Share this post


Link to post
Share on other sites

@@WabbaJ@ck you can create your own Lan servers, home hosted, from your own pc for others to join (lots of tuts on youtube)

 

or ask troll to set up a test server for you. 

0

Share this post


Link to post
Share on other sites

it can work on lan but you need to have the two clients with the same guid first one does not work for some reason but second will.

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0