Need help with a little NS script...
Hey what im trying to make is a plugin that gives a HMG to a player. When i try to compile this, it comes "argument mismatch" or something. Come somebody help me? Avalanche??? hehe :lol: Here it is:
Code:
|
What is the point of getting their username? You don't use it.
Anyway, the ns_give_item function accepts a string as the last parameter. It should be the classname of the entity you wish to give. Try this: Code:
|
It worked! 8) Thanks. Im making a "All in one" with all weapons hehe.
But i still get a "loose indentation" (or what its called :lol: ) warning. How do i get this away? |
It's your last PLUGIN_HANDLED that isn't aligned with the other stuff.
|
I dont understand... Use PLUGIN_CONTINUE instead then? Anyway it didnt work. It comes "cant create enitity WEAPON_HMG" or something like that when i try to use the command... Could you help me with that too??
|
Turns out you have to use "weapon_heavymachinegun". These are the names:
weapon_machinegun : Machine gun weapon_pistol : Pistol weapon_heavymachinegun : Heavy machine gun weapon_grenadegun : Grenade launcher weapon_shotgun : Shotgun weapon_welder : Welder weapon_mine : Pack of mines item_health : Health pack item_genericammo : Ammo item_jetpack : Jetpack item_heavyarmor : Heavy armor item_mine : Deployed mine As for the indentation warning, let's take a look: Code:
|
Omg how do you know all stuff? Thanks..
|
|
Thanks freecode reading it now 8)
Download my plugin here :D |
How do I know the names of the items? I took a look at the ns.fgd that comes with Natural Selection.
|
| All times are GMT -4. The time now is 13:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.