TFC Weapons
2 Attachment(s)
Team Fortress Classic: TFC Weapons!
Description: TFC WEAPONS allows any user on the server to pick any weapon(gun) they choose. This is not a amx_command it's in 'say'(Global Chat). Only one gun comes with 25rockets, for ammo which is the RPG(Rocket Launcher). This is not a plugin to abuse it. Current Version: I have currently released version: "0.1" - - - Watch the update log. Chat Commands: This will list the basic commands players need to type:
Code:
===Update Log===PHP Code:
|
Re: TFC Weapons
You're method is horrible. Instead of registering practically the same command god knows how many times, just remake it to where it can read paramters.
Oh let's say player types in chat: /need rocket /need shotgun /need gaben |
Re: TFC Weapons
Wait, What?
|
Re: TFC Weapons
Instead of doing this a bunch of times:
Code:
-> Code:
Of course you would create a GiveWeapon() function (hopefully with weapon enumerations). But it would also be better to store all the weapon names or w/e in a cache, loop through them witch matches up with the weapon enumerations, and pass the iterator (I hope I used that correctly). |
Re: TFC Weapons
I really don't get it, I was taught to do it the way I did it, and it works that way.
|
Re: TFC Weapons
It's really poor coding, and I was just offering advice. The one infinite question in programming is not how to get something done, but how to get it done efficiently.
|
Re: TFC Weapons
Thank you for your advice, i've sent you a PM regarding our issue.
|
Re: TFC Weapons
**ATTENTION APPROVERS**
Try not to unapprove/approve this yet, Zenith and I are going over some minor changes. Thank you. |
Re: TFC Weapons
its maybe better if dont have to "type" all of it.
better will be if players have to type only a menu that shows 1234567...and the players can choose their class! |
Re: TFC Weapons
Very VERY Nice idea, I like. I will add this, most likely.
|
| All times are GMT -4. The time now is 11:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.