Release [GSC] SCRIPT - KILLED CAMPER PLAYER

xBeaTzMoDz™

Modder
Messages
12
Points
368
Hello Cabconmodding Members​
Today I Release GSC Script Killed Camper
1 BUG; The camping player can be killed 1 time only (I dont know why i tried all to fix it but it wont work)

Video:
Pc Version :
[video=youtube;AmyhKlc5eAo]
[/video]
Ps3 Version :
[video=youtube;786mJez5y-4]
[/video]

Tutorial :
Step 1 : Open GSC Studio/GSC Tool and Make a New Project
Step 2 : Copy The Script and Paste The Code
Step 3 : Connect to Ps3/Pc/Xbox and Press Inject
Step 4 : Start a Game and Go !

Script - Killed Camper :
Code:
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon("disconnect");
    level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
        self iprintln("Black Ops 2 - GSC Script | Project : ^5Killed Camper");
        wait 0.5;
        self iprintln("GSC Script | Made By xBeaTzMoDz");
        self thread toggle_KilledCamper();
    }
}

toggle_KilledCamper()
{
    self thread KilledCamper();
    self iprintln("Killed Camper ^2Enabled");
    return thread KilledCamper();
}

KilledCamper()
{  
        level waittill( "prematch_over" );
        self endon("disconnect");
        self endon( "death" );
        my_camp_time = 0;
        have_i_been_warned = false;
        max_distance = 80;
        camp_time = 10;
        while( true )
        {
            old_position = self.origin;
            wait 1;

            new_position = self.origin;
            distance = distance2d( old_position, new_position );

            if( distance < max_distance )
            my_camp_time++;
            else
            {
                my_camp_time = 0;
                have_i_been_warned = false;
            }

            if( my_camp_time == camp_time && !have_i_been_warned )
            {
                self IprintLnBold( "^0Please ^1Stop ^0camping | ^110 ^0seconds ^0to ^1move" );
                have_i_been_warned = true;
            }

            if( my_camp_time == ( camp_time + 10 ) && have_i_been_warned )
            {
                self IprintLnBold( "^0You ^0will ^0be ^1killed ^0for ^1camping!");
                wait 2;
                self suicide();
               
            }
           
    }
}
Credits :
IMCSx - GSC Studio
xBeaTzMoDz - Making Convert Script
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,616
Points
828
Nice, and welcome on cabconmodding.com :grinning:


-Thread moved into scripts section
 

Similar threads


Top