Raised This Month: $ Target: $400
 0% 

Weap Restrist


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-12-2004 , 21:28   Weap Restrist
Reply With Quote #1

I need some help I am working on a rewrite of my weap script that was like 5500 lines coded out.. I knew I could shorten it..

Thanx to Bailopan's Guildence I begun at work a few mins ago....

I was wondering will this work?

Code:
new max_weap_rest[35] new curweap[35] new weap_pend[35] new weap_disabled[35] new weap_msg[99] new weap_msg[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] ")     }else {         weap_pend[weap] = 2         client_print(id,print_console," weap_msg[weap] ")     }     return PLUGIN_HANDLED }

Thanx Much...
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
 



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 08:49.


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