AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Couple of questions to get me started. (https://forums.alliedmods.net/showthread.php?t=524)

BAILOPAN 03-31-2004 22:40

give_item("weapon_name")

eg
give_item("weapon_ak47")

Gor.d 03-31-2004 23:07

It works!! Haha and I think I know why it all works too.

Quote:

Originally Posted by IceMouse[WrG
]He doesn't do any checks, so it is unlikely he would...

Would it be better if I used checks? Or I guess I should say..what are they advantages of useing checks?

Peli 03-31-2004 23:19

Thank you Bail :)

MagicShot 04-01-2004 00:14

hrm?
 
Bail: Does this work?

give_item("sheild")

BAILOPAN 04-01-2004 00:32

give_item("weapon_shield") or weapon_shieldgun I forget

Peli 04-01-2004 03:09

Is it possible to give weapons without taking money from the user?

BAILOPAN 04-01-2004 03:10

yeah I just told you it =P that doesn't take money

Peli 04-01-2004 16:59

Oh okay thanks :)

Gor.d 04-01-2004 20:22

I am getting an "unknown command amx_gimme" in the console. It still works but gives that error. Does this have something to do with the checks that someone mentioned?

dragonchaos 04-01-2004 22:01

you have to add
Code:

return PLUGIN_HANDLED
at the end of your function amx_gimme


All times are GMT -4. The time now is 16:51.

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