Post: Call of Duty 4: CoD Script Handbook
10-29-2012, 11:29 AM #1
xBeaTzMoDz
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Close This Thread
Last edited by xBeaTzMoDz ; 10-15-2014 at 12:33 PM.

The following user groaned xBeaTzMoDz for this awful post:

.BrainzModding
10-29-2012, 12:01 PM #2
There are already massively in depth tutorials out there for exactly this. Plus, showing a group a segment of code won't teach them too much.
10-29-2012, 03:32 PM #3
Taylor
Former Black Knight.
Originally posted by xBeaTzMoDz View Post
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();
}
}


We know how to script :dumb:
10-29-2012, 03:38 PM #4
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
We know how to script :dumb:


I hope 'we' doesn't include you :carling:.
10-29-2012, 03:41 PM #5
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
I hope 'we' doesn't include you :carling:.


>:< I do to know how fgt. :lol:
10-16-2014, 05:10 AM #6
Hammy
[b]#Hammy4IMGPerms McCoy[/b]
Closed on request.

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo