Raised This Month: $ Target: $400
 0% 

Let everyone know


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jageassyrian
Senior Member
Join Date: Jul 2007
Old 01-04-2008 , 23:36   Let everyone know
Reply With Quote #1

Is there anyway so u can make it once somebody gets an awp in this chance mod i have provided it will announce to everybody
PHP Code:
public main_func()
{
new 
players[32], num
get_players
(playersnum)

new 
player
for(new 0numi++)
{
player players[i]

if(
random_num(1200) <= 2)
{
give_item(player,"weapon_awp");
new 
weapon_id find_ent_by_owner(-1"weapon_awp"player);
cs_set_weapon_ammo(weapon_id2);
client_print(playerprint_chat"You were lucky, you got a awp with 2 bullets")
}

if(
random_num(11000) <= 1)
{
give_item(player,"weapon_m3");
new 
weapon_id find_ent_by_owner(-1"weapon_m3"player);
cs_set_weapon_ammo(weapon_id4);
client_print(playerprint_chat"You were very lucky, you got a M3 with 4 bullets")
}

if(
random_num(1100) <= 2)
{
give_item(player,"weapon_mac10");
new 
weapon_id find_ent_by_owner(-1"weapon_mac10"player);
cs_set_weapon_ammo(weapon_id5);
client_print(playerprint_chat"You were lucky, you got a MAC10 with 5 bullets")
}

if(
random_num(1100) <= 6)
{
give_item(player,"weapon_fiveseven");
new 
weapon_id find_ent_by_owner(-1"weapon_fiveseven"player);
cs_set_weapon_ammo(weapon_id2);
client_print(playerprint_chat"You were lucky, you got a five seven with 2 bullets")
}

if(
random_num(1100) <= 2)
{
give_item(player,"weapon_tmp");
new 
weapon_id find_ent_by_owner(-1"weapon_tmp"player);
cs_set_weapon_ammo(weapon_id5);
client_print(playerprint_chat"You were lucky, you got a Tmp with 5 bullets")
}

if(
random_num(1150) <= 2)
{
give_item(player,"weapon_scout");
new 
weapon_id find_ent_by_owner(-1"weapon_scout"player);
cs_set_weapon_ammo(weapon_id0);
client_print(playerprint_chat"You very were lucky, you got a scout(you run faster)")
}

if(
random_num(1100) <= 2)
{
give_item(player,"weapon_ak47");
new 
weapon_id find_ent_by_owner(-1"weapon_ak47"player);
cs_set_weapon_ammo(weapon_id5);
client_print(playerprint_chat"You were lucky, you got a AK47 with 5 bullets")
}

if(
random_num(1100) <= 4)
{
give_item(player,"weapon_deagle");
new 
weapon_id find_ent_by_owner(-1"weapon_deagle"player);
cs_set_weapon_ammo(weapon_id2);
client_print(playerprint_chat"You were lucky, you got a deagle with 2 bullets")
}

if(
random_num(1100) <= 15)
{
give_item(player"weapon_hegrenade")
client_print(playerprint_chat"You were lucky, you got a hegrenade")
}

if(
random_num(11000) <= 1)
{
give_item(player"weapon_shield")
client_print(playerprint_chat"You were very lucky, you got a Shield")
}



}
}

public 
round_start()
{
set_task(TIME_TO_WAIT"main_func")

jageassyrian 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 11:07.


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