Raised This Month: $ Target: $400
 0% 

Drop awp help...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kaksi
Junior Member
Join Date: Apr 2004
Old 06-29-2004 , 12:34   Drop awp help...
Reply With Quote #1

I use this plugin cause i like that the players that havn't read the rules get really angry when the awp they just bought isn't usable....

Code:
/* AMX(x) Mod script.
*
* (c) Copyright 2002, SuicideDog
* This file is provided as is (no warranties).
* Simple AWP restriction for CS (this works for 1.6)
*/

#include <amxmodx>

public check_awp(id) {
      if (get_cvar_num("sv_noawp")!=1) return PLUGIN_CONTINUE
      new llama = read_data(0)   
      client_print(llama,print_center,"AWPs are not allowed. Find a real gun!")
      client_cmd(llama,"weapon_awp;wait;wait;wait;drop")
      return PLUGIN_CONTINUE
}

public plugin_init(){
   register_plugin("Drop Awp","0.1","SuicideDog")
   register_event("WeapPickup","check_awp","b","1=18")
   register_cvar("sv_noawp","1")
   return PLUGIN_CONTINUE
}
I guess it's this line that register the event of a awp pickup... and the id opf the awp is 1=18? Am I right?

Code:
register_event("WeapPickup","check_awp","b","1=18")
What are the id's of the other sniper rifles? I want to enable this for some of the other rifles...

Is there a list of alla availible weapons?
kaksi is offline
 



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 14:53.


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