|
Author
|
Message
|
|
Junior Member
Join Date: Feb 2007
Location: In Breslau
|

02-01-2007
, 08:27
no-snap (why they don't work)
|
#1
|
Hello, it's my first plugins and i don't know why they don't work.
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "no-snap"
#define VERSION "1.0"
#define AUTHOR "Parchatek-b.pasz"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("WeapPickup", "pod_bron", "be")
// Add your code here...
}
public pod_bron() {
//new gracze[32]
new i=1
new id_bron
new a,b
while (i++ <=32)
{
id_bron=get_user_weapon (i,a,b)
if (id_bron==CSW_AWP || id_bron==CSW_SCOUT) {
strip_user_weapons(i)
client_print(i,print_chat,"wywal ta snajpere")
}
}
return PLUGIN_HANDLED
}
|
|
|
|
|