Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: help required
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Thursday, Aug. 14, 2014 01:36 am
attachment: image(75.5Kb) image(84.2Kb)
Hi guys so help me now today i am posting my full codes actually i want to create a mod called roll the dice of call of duty 1.1 i created code and i added my gsc file in dm.gsc its gametype file on Callback_StartGameType() line 186 maps\mp\gametypes\roll::do_roll();

my question is if i play game it makes me third person tris show triple heath etc.. and when someone joined my server he see text only third person on tris show and nothing happens so i start my server with bots connected set scr_numbots "10" then i joined game i got text only third person on tris show and nothing happens don't know why it work om first player sorry for my bad english see code bellow if you don't understand what i mean to say then see screenshots i am also posting two screenshot

please help me my xfire ahnthebest

Code:
do_roll()
{
 while (1)
  {
    players = getentarray("player", "classname");
	for(i = 0; i < players.size; i++)
	{
	        wait 20;
            iprintlnbold("Third person on");			
			players[i]  setClientCvar("cg_thirdperson", "1");
			wait 30;
			players[i] setClientCvar("cg_thirdperson", "0");
		    wait 20;
			iprintlnbold("Show tris For 20 second");
			players[i] setClientCvar("r_showtris", "1");
			wait 20;
			players[i] setClientCvar("r_showtris", "0");
			iprintlnbold("^2Nice FIELD OF VIEW");
			players[i]  setClientCvar("cg_fov", 100);
			wait 30;
			players[i]  setClientCvar("cg_fov", 65);
			iPrintlnBold("^1TRIPLE HP");
			self.maxhealth = 300;
			self.health = self.maxhealth;
			wait 15;
			iPrintlnBold("^1YOU BLIND?!?");
			players[i] setClientCvar("r_blur", 3);
			wait 30;
   			iprintlnbold("RANDOM ROLLS");
			wait 1;
			thread do_roll();
			return;
			}
            			
	}
    wait 10; 
}



edited on Aug. 13, 2014 06:38 pm by abdulhaee2013

edited on Aug. 13, 2014 08:45 pm by abdulhaee2013
Share |
buzzy
General Member
Since: Mar 27, 2014
Posts: 7
Last: Aug 18, 2014
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Thursday, Aug. 14, 2014 08:09 pm
This code will do all 3 dice rolls before its finised executing and then stop...if you want it to continue looping, delete the return statement.

return basically makes the method stop.
Share |
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Thursday, Aug. 14, 2014 11:50 pm
buzzy writes...
Quote:
This code will do all 3 dice rolls before its finised executing and then stop...if you want it to continue looping, delete the return statement.

return basically makes the method stop.


before understand my post and then reply
Share |
buzzy
General Member
Since: Mar 27, 2014
Posts: 7
Last: Aug 18, 2014
[view latest posts]
Level 0
Category: CoD Mapping
Posted: Friday, Aug. 15, 2014 02:16 am
My mistake, you re-threaded it. Ok, so try this:

Code:

do_roll()
{
	while(1)
	{
		players = getentarray("player","classname");
		for(i=0;i<players.size;i++)
		{
			wait 20;
			players[i] players[i] iprintlnbold("Third person on");
			players[i]  setClientCvar("cg_thirdperson", "1");
			wait 30;
			players[i] setClientCvar("cg_thirdperson", "0");
		   	wait 20;
			players[i] iprintlnbold("Show tris For 20 second");
			players[i] setClientCvar("r_showtris", "1");
			wait 20;
			players[i] setClientCvar("r_showtris", "0");
			players[i] iprintlnbold("^2Nice FIELD OF VIEW");
			players[i]  setClientCvar("cg_fov", 100);
			wait 30;
			players[i]  setClientCvar("cg_fov", 65);
			players[i] iprintlnbold("^1TRIPLE HP");
			self.maxhealth = 300;
			self.health = self.maxhealth;
			wait 15;
			players[i] iprintlnbold("^1YOU BLIND?!?");
			players[i] setClientCvar("r_blur", 3);
			wait 30;
   			players[i] iprintlnbold("RANDOM ROLLS");
			wait 1;
		}

		wait 10;
	}
}
Share |
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Friday, Aug. 15, 2014 09:44 am
you don't know what i mean to say i know that code
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»