Let everyone know
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:
|
Re: Let everyone know
PHP Code:
PHP Code:
|
Re: Let everyone know
Code:
client_print(player, print_chat, "%s got a awp with 2 bullets")Code:
new Name[32];Code:
client_print(0, print_chat, "%s got a awp with 2 bullets", Name) |
Re: Let everyone know
You should add the player name in there...
|
Re: Let everyone know
Yeah, lol. Updated 0o
|
Re: Let everyone know
SO it should look like this?
if(random_num(1, 200) <= 2) { give_item(player,"weapon_awp"); new weapon_id = find_ent_by_owner(-1, "weapon_awp", player); cs_set_weapon_ammo(weapon_id, 2); client_print(0, print_chat, "%s got a awp with 2 bullets", Name) } |
Re: Let everyone know
Yeah, and put this part before give_item thing...
Code:
new Name[32]; |
Re: Let everyone know
if(random_num(1, 200) <= 2)
{ new Name[32]; get_user_name(player, Name, sizeof Name - 1); give_item(player,"weapon_awp"); new weapon_id = find_ent_by_owner(-1, "weapon_awp", player); cs_set_weapon_ammo(weapon_id, 2); client_print(0, print_chat, "%s got a awp with 2 bullets", Name) } http://forums.alliedmods.net/images/...ser_online.gif http://forums.alliedmods.net/images/...reputation.gif vbrep_register("570492") http://forums.alliedmods.net/images/buttons/report.gif |
Re: Let everyone know
Yes.
|
| All times are GMT -4. The time now is 11:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.