Raised This Month: $ Target: $400
 0% 

-NoScope


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 04-17-2005 , 21:19   -NoScope
Reply With Quote #1

OK Heres What I Got :
Code:
 #include <amxmodx>  #include <amxmisc>  #include <fun>  #include <engine>  #include <cstrike>  public plugin_init() {     register_plugin("NoScopeMode","1.0","Fire")     register_cvar("sv_scope","1")     register_clcmd("amx_scope","ToggleScope",ADMIN_LEVEL_A,"<1|0> - Turns No Scope Mode On/Off")  }  public client_PreThink(id) {     if (!get_cvar_num("sv_scope"))     return PLUGIN_CONTINUE;     if(!is_user_alive(id))     return PLUGIN_CONTINUE;     new button = get_user_button(id);     if(button & IN_ATTACK2)     entity_set_int(id,EV_INT_button,button & ~IN_ATTACK2);     return PLUGIN_CONTINUE;  }  public ToggleScope(id,lvl,cid) {     if( !cmd_access(id,lvl,cid,1) )     return PLUGIN_HANDLED;     set_hudmessage(200, 100, 0, -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, 4);     new arg[3]     read_argv( 1, arg, 3 )     if( equali( arg, "on", 2 ) || equali( arg, "1", 1 ) )     {         set_cvar_num( "sv_scope", 1)         show_hudmessage(0,"No Scope Mode Is On")                 strip_user_weapons(id)         give_item(id,"weapon_scout")         cs_set_user_bpammo(id, CSW_SCOUT, 90)     }     else     {         set_cvar_num( "sv_scope", 0)         show_hudmessage(0,"No Scope Mode Is Off")         engclient_cmd(id, "drop", "weapon_scout")     }     return PLUGIN_HANDLED  }
Now What I Want To Do Is Make It So You Cant BuyAnything If amx_scope 1 And Also Have It Check Your Weapons And Strip All Of Them Execpt The Scout It Gives You So PLEASE HELP!!!
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 04-18-2005 , 19:56  
Reply With Quote #2

Some Help ... PLEASE??
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 04-18-2005 , 21:28  
Reply With Quote #3

ok i tryed this and it didnt work but i think im getting it... please help
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <engine> #include <cstrike> public plugin_init() { register_plugin("NoScopeMode","1.0","Fire") register_cvar("sv_scope","1") register_clcmd("amx_scope","ToggleScope",ADMIN_LEVEL_A,"<1|0> - Turns No Scope Mode On/Off") register_event("WeapPickup","drop","b") } public client_PreThink(id) { if (!get_cvar_num("sv_scope")) return PLUGIN_CONTINUE; if(!is_user_alive(id)) return PLUGIN_CONTINUE; new button = get_user_button(id); if(button & IN_ATTACK2) entity_set_int(id,EV_INT_button,button & ~IN_ATTACK2); return PLUGIN_CONTINUE; } public ToggleScope(id,lvl,cid) { if( !cmd_access(id,lvl,cid,1) ) return PLUGIN_HANDLED; set_hudmessage(200, 100, 0, -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.2, 4); new arg[3] read_argv( 1, arg, 3 ) if( equali( arg, "on", 2 ) || equali( arg, "1", 1 ) ) { set_cvar_num( "sv_scope", 1) show_hudmessage(0,"No Scope Mode Is On") strip_user_weapons(id) give_item(id,"weapon_scout") cs_set_user_bpammo(id, CSW_SCOUT, 90) } else { set_cvar_num( "sv_scope", 0) show_hudmessage(0,"No Scope Mode Is Off") engclient_cmd(id, "drop", "weapon_scout") } return PLUGIN_HANDLED } public drop(id) { if (!get_cvar_num("sv_scope")) return PLUGIN_CONTINUE; if(!is_user_alive(id)) return PLUGIN_CONTINUE; strip_user_weapons(id) return PLUGIN_CONTINUE; give_item(id,"weapon_scout") cs_set_user_bpammo(id, CSW_SCOUT, 90) return PLUGIN_CONTINUE; }
probaly not doing this right PLEASE PLEASE HELP
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 04-22-2005 , 21:36  
Reply With Quote #4

Can Some Tell Me If It Is Possible ??? PLEASE Answer yes with help or no with out any help....
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-22-2005 , 22:22  
Reply With Quote #5

Use strip_user_weapons to get rid of all their weapons. To restrict buying you could try registering a touch with a buyzone and then returning PLUGIN_HANDLED so the game doesn't think you're in one, but it wouldn't work on maps without specific buyzone entities.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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


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