Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 49 Guests
Online:

LATEST FORUM THREADS

»
coduo mapping tools
CoDUO Mapping
Gaming
Q4 General
eXtreme+ v2.9
CoDBO Map + Mod Releases
map loading error
CoD2 MP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty: World at War
Category: CoDWW MP Mapping
CoD: World at War Multiplayer mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Admin room
joshpk
General Member
Since: Apr 20, 2010
Posts: 11
Last: May 25, 2011
[view latest posts]
Level 1
Category: CoDWW MP Mapping
Posted: Friday, Apr. 30, 2010 10:11 pm
That didnt work either :(

Code:
main()
{
	thread AdminTrigger();
}

AdminTrigger()
{
	trigger = GetEnt( "admin_thing", "targetname" );
	guid = "1111111111"; // Replace with your's own guid.

	while(true)
	{
		trigger waittill( "trigger", player );
		
		if( player getGuid() == guid ) 
			trigger thread Teleport( player );
		else
			iprintLn("^2YOUR NOT AN ADMIN!");
	}
}


Teleport( player )
{
entTarget = getent( self.target, "targetname");
wait(0.50);
player setOrigin( entTarget.origin );
player setPlayerAngles( entTarget.angles );
wait(0.50);
}

got the error

Code:
Error: uninitialised variable 'player': (file 'maps/mp/_teleportadmin.gsc', line 26)
player setOrigin( entTarget.origin );


so i tried adding

Code:
   self waittill("trigger",player);

above
Code:
   entTarget = getent(self.target, "targetname");
   wait(0.50);


and it teleported, the thing is I didnt have my guid in it I still had 1111111111

so i removed it and i don't know what to change.
Share |
joshpk
General Member
Since: Apr 20, 2010
Posts: 11
Last: May 25, 2011
[view latest posts]
Level 1
Category: CoDWW MP Mapping
Posted: Saturday, May. 1, 2010 03:46 pm
got it working, with some help from fixz

thanks a lot waffles appreciate it.
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»