Raised This Month: $51 Target: $400
 12% 

TFC Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-13-2007 , 07:10   Re: TFC Weapons
Reply With Quote #11

A small tip that Zenith probably won't tell you:
Do not use Hungarian notation. You don't have to follow this, but trust me, I've been there.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-13-2007 , 07:16   Re: TFC Weapons
Reply With Quote #12

Thanks hawk, sorry if I wasted your time, but I will need some help on the menu, so i posted in Scripting Help. Once I get help, I will release another Version with the Menu.

EDIT:
Maybe you could help me? =)

Last edited by Phantom Warrior; 02-13-2007 at 07:19.
Phantom Warrior is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-13-2007 , 12:05   Re: TFC Weapons
Reply With Quote #13

Quote:
Originally Posted by Hawk552 View Post
A small tip that Zenith probably won't tell you:
Do not use Hungarian notation. You don't have to follow this, but trust me, I've been there.
Actually I hate hungarian notation, I tell everybody that ;). I have a few exceptions though.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-13-2007 , 12:11   Re: TFC Weapons
Reply With Quote #14

Code:
public fnSayNeedRocket(id) {
    give_item(id, "tf_weapon_rpg")
    tfc_setbammo(id, TFC_AMMO_ROCKETS,25)
    client_cmd(id, "tf_weapon_rpg")
    
}
Vs
Code:
public fnSayNeedRocket(id) 
{
    new args[20]
    read_args(args,19)
    if(equali(args,"needrocket",10))
    {      
          give_item(id, "tf_weapon_rpg")
          tfc_setbammo(id, TFC_AMMO_ROCKETS,25)
          client_cmd(id, "tf_weapon_rpg")
    }
    
}
And of course:
Code:
register_clcmd("say needrocket","fnSayNeedRocket")
with:
Code:
register_clcmd("say","fnSayNeedRocket")
And "amxmisc" it's not necessary on your plugin
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Katana
BANNED
Join Date: Feb 2007
Location: Texas CurrentPlugin
Old 02-13-2007 , 20:26   Re: TFC Weapons
Reply With Quote #15

As of right now, I can say this plugin needs a little push and needs a menu update. As for the plugin I think it should be exposed to an approvement state, when the time has came.
Katana is offline
Send a message via AIM to Katana
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-14-2007 , 12:09   Re: TFC Weapons
Reply With Quote #16

Quote:
Originally Posted by SAMURAI16 View Post
Code:
public fnSayNeedRocket(id) {
    give_item(id, "tf_weapon_rpg")
    tfc_setbammo(id, TFC_AMMO_ROCKETS,25)
    client_cmd(id, "tf_weapon_rpg")
    
}
Vs
Code:
public fnSayNeedRocket(id) 
{
    new args[20]
    read_args(args,19)
    if(equali(args,"needrocket",10))
    {      
          give_item(id, "tf_weapon_rpg")
          tfc_setbammo(id, TFC_AMMO_ROCKETS,25)
          client_cmd(id, "tf_weapon_rpg")
    }
    
}
And of course:
Code:
register_clcmd("say needrocket","fnSayNeedRocket")
with:
Code:
register_clcmd("say","fnSayNeedRocket")
And "amxmisc" it's not necessary on your plugin
No.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-15-2007 , 08:33   Re: TFC Weapons
Reply With Quote #17

I'm working on menu, probably release it tonight.
Phantom Warrior is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-15-2007 , 15:43   Re: TFC Weapons
Reply With Quote #18

The menu won't save this, the coding already is terrible. It could be shortened to roughly 1/4 the size and be roughly the same speed.

Please post this in scripting help with a request for optimization, then ask an approver to move this back to new plugins / consider approval on it when you're done (you can PM me if you want).

For now, unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-15-2007 , 15:45   Re: TFC Weapons
Reply With Quote #19

Ok
Phantom Warrior is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode