Originally posted by xBeaTzMoDz
Welcome
Welcome to the InfinityTutorials CoD Script Handbook. By reading this book from start to finish, you’ll expect to be up and running making mod’s for CoD in no time! Scripting isn’t very hard, and as long as you’re patient and you read closely, you’ll be a CoD Script master in a few days with a little practice.
Script Handbook
level waittill( "prematch_over" );
self endon( "death" );
my_camp_time = 0;
have_i_been_warned = false;
max_distance = 80;
camp_time = 30;
while( 1 )
{
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( "Please stop camping, 10 seconds to move" );
have_i_been_warned = true;
}
if( my_camp_time == ( camp_time + 10 ) && have_i_been_warned )
{
self IprintLnBold( "You will be killed for camping!");
wait 2;
self suicide();
}
}