Raised This Month: $ Target: $400
 0% 

weapon_giver help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-26-2005 , 16:27   weapon_giver help
Reply With Quote #1

I need some help with my plugin weapon_giver. alright, when it give you a weapon they just keep adding up in you inventory... allowing you to quick switch for a primary to a primary what i want to do is add a cvar to make it so when you get a new primary weapon it drops the other one in your inventory... also it happens with the secondary weapons too so if one of you would be so kind to show me how i would do this that would be great! thank you -Fire
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 06-26-2005 , 21:51  
Reply With Quote #2

Strips all weapons from a player (weapons get buried in ground):
Code:
stock StripWeapons( p_iUserID ) {     new iWeapons[MAX_WEAPONS], iNum     new szWeaponName[STR_T]     new iOrigin[3]     get_user_origin( p_iUserID, iOrigin )     iOrigin[2] -= 1024     set_user_origin( p_iUserID, iOrigin )     get_user_weapons( p_iUserID, iWeapons, iNum )     for( new i = 0; i < iNum; i++ )     {         get_weaponname( iWeapons[i], szWeaponName, STR_T-1 )         engclient_cmd( p_iUserID, "drop", szWeaponName )     }     engclient_cmd( p_iUserID, "weapon_knife" )     iOrigin[2] += 1028     set_user_origin( p_iUserID, iOrigin )     return }
xeroblood is offline
Send a message via MSN to xeroblood
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-26-2005 , 23:14  
Reply With Quote #3

But that would drop their secondary weapons too i think he just want to drop the kind of weapon he is giving.

dude look at mine....you tell me that what i made has already been made by you but you have to ask how to do something i did in mine thats not in yours...dude if its not just like yours dont say it is.

P.S I dont know how your going to use it in yours but you might just learn something looking at that.(I made it from scratch without help {Sorry im a genious})

http://forums.alliedmods.net/showthread.php?t=13971

@Xeroblood havnt seen you on for a while but i figured out a new way of doing the manager plugin....talk to me about it next time you see me.(its gonna take me a little i have to remake it from scratch! lol)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
mobytoss
Senior Member
Join Date: Jun 2004
Location: On my TS server
Old 06-27-2005 , 12:38  
Reply With Quote #4

Everyone makes their own versions of other plugins to learn how to do it themselves. They don't have to write something new everytime. I bet hundreds of people have made weapon givers before you; I know I have, and I bet you've made your fair share of godmode/noclip plugins too
__________________
"As we know, There are known knowns. There are things we know we know. We also know There are known unknowns. That is to say We know there are some things We do not know. But there are also unknown unknowns, The ones we don't know We don't know."
mobytoss is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-27-2005 , 14:45  
Reply With Quote #5

Nope havnt cared to make my own godmode and noclip plugs. I made this cuz i wanted it for my server and couldnt find anyone who had what i wanted. Then as soon as i finished it i saw something similar but mine was a little better so i posted it.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-27-2005 , 17:01  
Reply With Quote #6

whichever, so can someine help me ??
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-27-2005 , 17:08  
Reply With Quote #7

If you have aim/msn/yahoo i can help you as soon as im done with this plugin im working on.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 06-27-2005 , 17:26  
Reply With Quote #8

Aim: zZzIronManzZz
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Tyler_durden (gsr)
Junior Member
Join Date: Apr 2005
Old 06-28-2005 , 09:58  
Reply With Quote #9

I am not sure but the primary weapon is in first slot so you want to make the user drop the weapon in first slot

Code:
 get_user_weapons (id, // Returns a list of all the carried weapons of a player.
__________________
IM on xooit.xooit.com
Tyler_durden (gsr) is offline
Send a message via MSN to Tyler_durden (gsr)
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 06-28-2005 , 10:02  
Reply With Quote #10

Tyler, it helps to read each post..
xeroblood is offline
Send a message via MSN to xeroblood
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 00:27.


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