AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Few simple questions.... (https://forums.alliedmods.net/showthread.php?t=11388)

burcyril10 03-18-2005 01:43

Few simple questions....
 
I'm am REALLY new to scripting, i'll try to learn as fast as i can.
I'm running mod TS and I want to make a weapon restriction pluging, its easier then you would think. All you have to do normaly is type "weaponrestriction x" in the server console. Ive written everything, but how to I get amxx to acualy 'type' that into the console?

Also, when an admin DOES type it in I want a pretty little message (equivalent to "say @rPistols Only") any1 know how?

I'll be back with more questions later ;)

burcyril10 03-18-2005 01:44

Ah, set_cvar_num? For my first request?

burcyril10 03-18-2005 01:47

COOL, I found the function reference in the Docs....Well it always happens that you find it STRAIGHT after asking the question...

would show_hudmessage be good for my second request (with set_hudmessage first)?

XxAvalanchexX 03-18-2005 13:44

Yes, set_hudmessage and show_hudmessage is what you will want.


All times are GMT -4. The time now is 14:08.

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