I tried all codes in this page but anything worked.
Edit:
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")
}
public pod_bron()
{
//new gracze[32]
new i
new id_bron
new a,b
for (i = 0; i < 33; i++)
{
if (is_user_connected(i))
{
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
}
|
If is doing ONLY (if ((id_bron == CSW_AWP) || (id_bron == CSW_SCOUT))) when map start (i have only knife and pistol) and never after . Why?