Raised This Month: $63 Target: $400
 15% 

Weap Restrist


Post New Thread Reply   
 
Thread Tools Display Modes
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 03-22-2004 , 05:45  
Reply With Quote #21

hmm , the arrays amybe can contain integers or strings only???

try using intenegrs then, it will be a but more resurce consuming
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-22-2004 , 18:58   Thanx!!
Reply With Quote #22

Thanx Kas.. I got it figured out..

I posted the Plugin in the plugins section..
The Base is there but working on voting system this week..

Credits to Kas and Bail for there wonderful assistance and helping me understanding arrays and loops & while statements..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-22-2004 , 19:05  
Reply With Quote #23

Code:
#include <amxmodx> #include <amxmisc> #define CSMAX_WEAPONS 30 + 1 #define MAX_MSGLEN 64 new max_weap_rest[35] new curweap[35] new weap_pend[] = usp, deagle, elite, p228, fiveseven new weap_disabled[] = usp, deagle, elite, p228, fiveseven new weap_msg[CSMAX_WEAPONS][MAX_MSGLEN] new weap_msg[CSW_USP][] = "[AMX] Set Weapon USP Disabled Mode" new bool:first_time = false public checkweap(id,level,cid) { new arg[32] read_argv(1,arg,31) weap = read_argv(1,arg,31)     if (!curweap[weap]) {         set_hudmessage(0, 100, 0, -1.0, 0.65, 2, 0.02, 10.0, 0.01, 0.1, 2)         show_hudmessage(0,"Weapon Name Not Found!")         return PLUGIN_HANDLED     }     if(weap_disabled[weap] == 0) {         first_time = true         weap_pend[weap] = 1         client_print(id,print_console,weap_msg[weap] ) //Should work...     }else {         weap_pend[weap] = 2         client_print(id,print_console,weap_msg[weap] ) //Same     }     return PLUGIN_HANDLED } public plugin_init() {     register_plugin("Weapon Vote and Restrict","0.1","MagicShot")     register_cvar("amx_weaponrest","1",0)     register_clcmd("amx_magrest","checkweap",ADMIN_LEVEL_H,"amx_magrest :  toggles restricted weapons eg. amx_magrest weaponname") }
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 03-23-2004 , 03:30  
Reply With Quote #24

about voting system, maybe another plugin can ccoerate with that - i use one plugin that really heps in such a strange things, but i forgot the name (sth like admin vote? or vote system.. dunno)
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
Reply


Thread Tools
Display Modes

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:57.


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