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

Members Online

»
0 Active | 35 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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: please help me
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 11, 2014 08:43 pm
attachment: image(114.7Kb) image(108.7Kb)
hey guys i have a little problem with my code i don't see anything wrong on my code when i join my server it makes me thirperson after 10 second if someone join my server they see text only thirdperson on didn't thirdperson so my question first player joined can get thirperson then other player joined they get text only thirdperson on see code bellow

Code:
thirdperson()
{ 
  while (1)
  {
    players = getentarray("player", "classname");
	for(i = 0; i < players.size; i++)
	{
            wait 10;
            iprintlnbold("third person on");		
			players[i]  setClientCvar("cg_thirdperson", "1");
			return;
            			
	}
    wait 10; 
  }
}


and i am also posting tho screenshot that you can understand better what is problem

first screenshot play me only it did thirdperson because i first joined

second screenshot i joined server when someone was playing on my server
thank you!

Share |
modsfabio
General Member
Since: Aug 10, 2014
Posts: 23
Last: May 18, 2017
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 11, 2014 08:54 pm
Code:

thirdperson()
{ 
	while(1)
	{
		players = getentarray("player", "classname");
		for(i = 0; i < players.size; i++)
		{
			players[i]  iprintlnbold("third person on");		
			players[i]  setClientCvar("cg_thirdperson", "1");           			
		}
		wait 10; 
	}
}

Would be better to call setClientCvar("cg_thirdperson", "1"); on PlayerConnect anyway but it should work like this
Share |
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 11, 2014 08:59 pm
well i know it but i want everyone player can be third person in 10 second
Share |
abdulhaee2013
General Member
Since: Oct 24, 2013
Posts: 14
Last: Aug 15, 2014
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Wednesday, Aug. 13, 2014 12:08 am
please reply
Share |
ebusanta001
General Member
Since: Mar 3, 2013
Posts: 195
Last: Aug 25, 2020
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD Mapping
Posted: Wednesday, Aug. 13, 2014 02:11 am
What's your purpose? 10 secs in thirdperson and 10 secs in firstperson?

add players setClientCvar("cg_thirdperson", 0); on the script.
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 12:25 am
ebusanta001 writes...
Quote:
What's your purpose? 10 secs in thirdperson and 10 secs in firstperson?

add players setClientCvar("cg_thirdperson", 0); on the script.


i mean if one player connected on my server he will third person after 10 second and if other player comes they get text only third person on after 10 second so i don't know how to fix that
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

»