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

Members Online

»
0 Active | 92 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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: Shop in map
effenberg6
General Member
Since: Apr 8, 2011
Posts: 3
Last: Apr 9, 2011
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Apr. 9, 2011 01:48 pm
Who can give me links to those topics of shops on the map
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, Apr. 9, 2011 05:11 pm
google can.

edit

maybe u can help me? :D

with bind F5 developer 1

Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Saturday, Apr. 9, 2011 05:35 pm
i have the correct script here. Took me only 5 minutes to fix it, but because you havent shown you can handle scripts, im not posting it here, sorry.

Seems to me you tried to get some free scripting help by doing almost nothing yourself (make some real crappy code, then post it hoping for someone to post the good code. Then complain when that code doesnt work because you call it the wrong way or dont define some vars)

Im not helping you with this.
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Apr. 13, 2011 04:58 pm
My post isn't going to be of any help but its more directed at izNoGod.

please also dont take this as any form of insult towards you or anything of that matter. so with that being said heres what i have to say:

1. even though u seem very knowledgeable in what you do, it would be helpful to give the guy whom is asking for help some reference as to where he can learn some basic scripting other than just to post and insult. If you really wanted him to learn something so he can write it himself then by all means help him out.


2. If you feel everything u wrote from the first post and then later on go about how your not going to help him then why bother with it to begin with?


3.from all the post posted by the author off of this topic he/she never once disrespected you. I feel it would be only fair and the right thing to have done in this post and all future future posts.


4.If you feel that your superior to others, in a particular area, please do not go on about bragging about it and disrespecting the person asking for help. It just gives this site and the other ppl that are willing to help a bad image.


5.If you feel you do not want to participate in the topic then by all means do so. Respect others and let other individuals post any helpful advice to the guy.


Remember none of us are born knowing everything. Plus being disrespectful just gives u a bad image, even if you are very skilled at what you do.
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Apr. 13, 2011 05:01 pm
serthy writes...
Quote:
google can.

edit

maybe u can help me? :D

with bind F5 developer 1



how bout using another key instead of f5? such as like

Code:
 bind [key] toggle developer 1 0 


not sure if that would help, but it would turn dev1 on and off everytime u press that key
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Apr. 13, 2011 05:34 pm
How about using the console to set developer to 1?

About the script: Here is it.

I hope you know how to call it and have knowledge about how to make the user.money var... else... go read some tutorials as suggested by voidsource (codjumper.com forums has a few good tutorials for starters)

Code:

main()
{
	precacheitem("launcher_mp");
	thread ammo();
}

ammo()
{
	ammocost=100;
	trig=getent("trig_ammo","targetname");
	for(;;)
	{
		trig waittill("trigger",user);
		if(user.pers["team"]=="allies")
		{
			if(user.money>=ammocost)
			{
				user.money-=ammocost;
				user setweaponslotweapon("primaryb","launcher_mp");
				user switchtoweapon("launcher_mp");
			}
			else
				user iprintlnbold("Not enough money");
		}
		else
			user iprintlnbold("I never sell no guns to no zombies");
	}
}
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Apr. 13, 2011 05:47 pm
offtopic:
i tried:
bind F5 "set developer 1"
bind F5 set developer "1"
bind F5 set "developer 1"
bind F5 set developer 1
bind F5 toggle developer 1 0

noone of this seems to work

i always typed developer in console, but its annoying to toggle console and write /developer 1 for every single bad syntax etc. error in my scripts



Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Wednesday, Apr. 13, 2011 06:28 pm
@serthy,
you can't use binds before u joined a server, thats why it doesnt work.
if ur ingame, use /bind F5 developer 1
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»