Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Script problem
#1
so ya i made a noclip script but its going only forward and backward but recently i changed the code and it gives connection interrupted, its the same with bot spawner on search and destroy, if anyone could help me it will be great (ofc im not posting my codes here lol)

my skype: simodalg or pm me here
Reply

#2
Wink 
if you not posting code in your topic ,member's how help you? Big Grin
and you can search noclip code in itsmods forum. Big Grin

have a Good Day Heart
Nyan Cat You can't teach an old dog new tricks Nyan Cat
Nyan Cat You can't teach grandmother to suck eggs Nyan Cat
Reply

#3
doUFO()
{

self waittill("spawned_player");

if(isdefined(self.newufo))
self.newufo delete();

self.newufo = spawn("script_origin", self.origin);

for(;Wink
{
maps\mp\gametypes\_spectating:ConfusedetSpectatePermissions();

if(self.doufo != 1)
continue;

self disableWeapons();
self.newufo.origin = self.origin;
self linkto(self.newufo);
self Enableinvulnerability();
self allowSpectateTeam( "freelook", true );
if(self Attackbuttonpressed())
self.newufo.origin += anglestoforward(self getPlayerAngles())*30;
if(self Adsbuttonpressed())
self.newufo.origin -= anglestoforward(self getPlayerAngles())*30;
wait 0.05;

}
}
Reply

#4
Code:
watchUFO()
{
    // when a player is spawned thread them
    level waittill( "player_spawned", player );
    if( !IsDefined( player.pers[ "isBot" ] ) )
    {
        player NotifyOnPlayerCommand( "ls_down_ufo", "+breath_sprint" );
        player NotifyOnPlayerCommand( "dpad_up_ufo", "+actionslot 1" );
        player thread playerUFO();
    }
    level thread watchUFO();
}

playerUFO() // self == player
{
    self endon( "disconnect" );
    self endon( "death" );

    self.devUFOLS = false;
    self.devUFODpad = false;
    self thread watchUFOLS();
    self thread watchUFODpad();

    while( true )
    {
        if( GetDvarInt( "scr_devufo" ) > 0 )
        {
            if( self.devUFOLS && self.devUFODpad )        
                self ufo();
        }

        wait( 0.2 );
    }
}

watchUFOLS() // self == player
{
    self endon( "disconnect" );
    self endon( "death" );

    while( true )
    {
        self waittill( "ls_down_ufo" );

        self.devUFOLS = true;

        wait( 0.2 );

        self.devUFOLS = false;
    }
}

watchUFODpad() // self == player
{
    self endon( "disconnect" );
    self endon( "death" );

    while( true )
    {
        self waittill( "dpad_up_ufo" );

        self.devUFODpad = true;

        wait( 0.2 );

        self.devUFODpad = false;
    }
}
Thread on init()
From IW5 _dev.gsc
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Script help swegspoder69 2 3,194 09-14-2014, 07:48
Last Post: Nekochan
  Help Script Problems Ltave5 2 3,306 09-02-2014, 08:06
Last Post: Ltave5

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.