is there and if statement for location likeor some thing like that so basically if on axis team and at coordinates then do some thingCode:if((self.team == "axis") & (####,####,##)) { do this }
He ment;
If i am in axis team and if i stand on spot/selfgetOrigin(i think) xxx happens
Code:if(self getOrigin() == (#,#,#)) lala(); or dist = 50; if(distance(self getOrigin(), (#,#,#)) < dist ) lala();
Umm.. did you change the "#"s?... Lolololo and removed/picked one of them.
[php]if(self.team=="axis" && self getOrigin()==(xx,xx,xx))
{
blablabal
}[/php]
[YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]
Code:if(self.team == "axis" && distance(self.origin, (###,###,###)) < 100) { //Do stuff here }
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
ok now im sher that im going something wrongbut i dont see itCode:onPlayerSpawned() { self endon("disconnect"); for(;;) { self waittill("spawned_player"); if(self.team == "axis" && distance(self.origin, (1744,-299,3226)) < 100) { self freezeControls(true); } } }
Last edited by TheLynx; 10-31-2010 at 11:26 AM.
XFL (10-31-2010)
tested it and it worked
dose any one know a code to make only one team able to use a flag
/me
Glad i could help
Checking the flag thing.
Edit: Soooooooo i don't know if this works but here we go.
After a while this came to my mind
Not syntaxed checked
To Create a Flag for opfor/axis only just add
[php]AxisElevator((#, #, #), (#, #, #), (#, #, #));[/php]
And for TF 141/allies
[php]AlliesElevator((#, #, #), (#, #, #), (#, #, #));[/php]
Axis = Red flags
Allies = Blue flags
Add this to somewhere in the MapEdit (like bottom )
[php]AxisElevator(enter, exit, angle)
{
flag = spawn( "script_model", enter );
flag setModel( level.elevator_model["exit"] );
wait 0.01;
flag = spawn( "script_model", exit );
flag setModel( level.elevator_model["exit"] );
wait 0.01;
self thread AxisElevatorThink(enter, exit, angle);
}
AlliesElevator(enter, exit, angle)
{
flag = spawn( "script_model", enter );
flag setModel( level.elevator_model["enter"] );
wait 0.01;
flag = spawn( "script_model", exit );
flag setModel( level.elevator_model["enter"] );
wait 0.01;
self thread AlliesElevatorThink(enter, exit, angle);
}
AxisElevatorThink(enter, exit, angle)
{
self endon("disconnect");
while(1)
{
foreach(player in level.players)
{
if(self.team == "axis" && distance(enter, player.origin) <= 50){
player SetOrigin(exit);
player SetPlayerAngles(angle);
}
}
wait .25;
}
}
AlliesElevatorThink(enter, exit, angle)
{
self endon("disconnect");
while(1)
{
foreach(player in level.players)
{
if(self.team == "allies" && distance(enter, player.origin) <= 50){
player SetOrigin(exit);
player SetPlayerAngles(angle);
}
}
wait .25;
}
}[/php]
Last edited by TheLynx; 10-31-2010 at 03:15 PM.