I have a random weapon giver.
Code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#define PLUGIN "Rastgele Deagle Gelme"
#define VERSION "1.0"
#define AUTHOR "Optimist ( LockdowN )"
#define chance(%1) ( %1 > random(100) )
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "FwdRoundStart", "a")
}
public FwdRoundStart()
{
if(random(100) > 49)
{
new players[32], num
get_players(players, num, "ach")
new id = players[random(num)]
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id,CSW_M4A1,555)
give_item(id, "weapon_mp5navy")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_MP5NAVY,555)
cs_set_user_bpammo(id,CSW_DEAGLE,555)
}
}
in round start script will give one person weapon
but it not
and how can i give weapons only T persons

PLEASE HELP ME SORY FOR MY BAD ENGLİSH