News A server update was released on July 20. Server patch notes and downloads are here. Additionally, a client update was released on the same day. Client patch notes are here.
Recent Posts
1
Script and Content Requests / Re: Help
« Today at 02:54 PM by MEGAMIND »
Quote from Cool Today at 02:12 PM
Quote from MEGAMIND Today at 12:54 PM
Quote from Mahmoud Tornado Today at 12:33 PM
Hi I Need Help When I Add Cmd Like This

else if ( cmd == "test" )
               {
                  player.IsFrozen = false;
                }

I Need To Make The Freeze False For All Players How ? :D

Thx
MahmoudTornado
Mahmoud Ashraf
u can use this
To freeze a player use this
Code: [Select]
else if ( cmd == "freeze" )
{
 local plr = FindPlayer( text.tointeger() ); //  do /freeze player id
 
 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );
 
 else player.IsFrozen = true;
}

to unfreeze a player use
Code: [Select]
if ( cmd == "unfreeze" )// do it like /unfreeze yourname
{
 local plr = FindPlayer( text );

 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );

 else player.IsFrozen = false;
}
he is asking for all players not for a single player
[Edit] FindPlayer( text.tointeger() ); what the fuck is this :-\ :-\ :-\ :-\
u pieace of junk
Code: [Select]
FindPlayer( text.tointeger() );
this is where u find a player id
2
Script and Content Requests / Re: Help
« Today at 02:47 PM by MatheuS »
Code: [Select]

//Example of command

else if ( cmd == "freezeall" ) Frozen();

// function
function Frozen()
{
        for ( local i = 0; i < GetMaxPlayers(); i++ )
        {
                local p = FindPlayer( i );
                if ( p )
                {
                        if ( p.IsSpawned )
                        {
                                p.IsFrozen = true;
                        }
                }
         }
}
3
Script and Content Requests / Re: Help
« Today at 02:12 PM by Cool »
Quote from MEGAMIND Today at 12:54 PM
Quote from Mahmoud Tornado Today at 12:33 PM
Hi I Need Help When I Add Cmd Like This

else if ( cmd == "test" )
               {
                  player.IsFrozen = false;
                }

I Need To Make The Freeze False For All Players How ? :D

Thx
MahmoudTornado
Mahmoud Ashraf
u can use this
To freeze a player use this
Code: [Select]
else if ( cmd == "freeze" )
{
 local plr = FindPlayer( text.tointeger() ); //  do /freeze player id
 
 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );
 
 else player.IsFrozen = true;
}

to unfreeze a player use
Code: [Select]
if ( cmd == "unfreeze" )// do it like /unfreeze yourname
{
 local plr = FindPlayer( text );

 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );

 else player.IsFrozen = false;
}
he is asking for all players not for a single player
[Edit] FindPlayer( text.tointeger() ); what the fuck is this :-\ :-\ :-\ :-\ 
4
Script and Content Requests / Re: Help
« Today at 12:54 PM by MEGAMIND »
Quote from Mahmoud Tornado Today at 12:33 PM
Hi I Need Help When I Add Cmd Like This

else if ( cmd == "test" )
               {
                  player.IsFrozen = false;
                }

I Need To Make The Freeze False For All Players How ? :D

Thx
MahmoudTornado
Mahmoud Ashraf
u can use this
To freeze a player use this
Code: [Select]
else if ( cmd == "freeze" )
{
 local plr = FindPlayer( text.tointeger() ); //  do /freeze player id
 
 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );
 
 else player.IsFrozen = true;
}

to unfreeze a player use
Code: [Select]
if ( cmd == "unfreeze" )// do it like /unfreeze yourname
{
 local plr = FindPlayer( text );

 if (!plr) MessagePlayer( "Error: Player '" + plr + "' is not online.", player );

 else player.IsFrozen = false;
}
5
Support / Re: object & pickup
« Today at 12:48 PM by MEGAMIND »
Quote from MatheuS Today at 12:04 PM
actually i have done the same thing too. i want to know if the object takes the pickup and moves to other direction specified by that pickup
6
Script and Content Requests / Help
« Today at 12:33 PM by Mahmoud Tornado »
Hi I Need Help When I Add Cmd Like This

else if ( cmd == "test" )
               {
                  player.IsFrozen = false;
                }

I Need To Make The Freeze False For All Players How ? :D

Thx
MahmoudTornado
Mahmoud Ashraf
7
Support / Re: object & pickup
« Today at 12:04 PM by MatheuS »
8
Support / object & pickup
« Today at 10:23 AM by MEGAMIND »
hi guyz is it possible to make an object take a pickup and then make it moveby a pickup to somelocation?

first i made an object on
Code: [Select]
function onScriptLoad()
{
ramp <- CreateObject( 560, 0, -293.014, -597.059, 12.8528, 255);
}

then on player cmd

Code: [Select]
if(cmd == "test" )
{
MessagePlayer("ramp moved!", player );
                ramp.MoveTo( Vector(-329.487, -598.352, 12.8351), 1000)
                ramp.RotateTo( Quaternion(0, 0, 0.5, -0.866025), 0 );
                CreatePickup(368, Vector(-329.487,  -598.352, 12.8351));
}

then on playerpickup

Code: [Select]
function onPickupPickedUp( player, pickup )
{
if ( ramp.pickup.Model == 368 )
 {
  ramp.Moveby(368, Vector(384.108, -805.87, 9.65089), 1000 )
 }
}

but this doesnt work the obejct moves to a location when /test is applied but when it reaches to a pickup it doesnot moves to speciaifed location
9
A better Radar then the previous
New:-
10
From my POV shouldn't be legal, more likely to be used as developer mode.