Announceing
Well i amd remaking a chance mod for cs hns, and i would like it to announce once a player gets the weapon for example. what do i add to this code so when the user gets the gun it announces to everyone
if(random_num(0, 100) <= 3) { give_item(player,"weapon_awp"); new weapon_id = find_ent_by_owner(-1, "weapon_awp", player); cs_set_weapon_ammo(weapon_id, 3); client_print(player, print_chat, "You were lucky, you got a awp with 3 bullets") |
Re: Announceing
new name[32]
get_user_name(player,name,31) client_print(0, print_chat, "%s got a awp with 3 bullets!",name) |
Re: Announceing
where do i place that in the code
|
Re: Announceing
Quote:
ex PHP Code:
|
Re: Announceing
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /home/groups/amxmodx/tmp3/phpmoKsQB.sma(1675) : warning 217: loose indentation /home/groups/amxmodx/tmp3/phpmoKsQB.sma(1678) : warning 217: loose indentation /home/groups/amxmodx/tmp3/phpmoKsQB.sma(1735) : error 029: invalid expression, assumed zero /home/groups/amxmodx/tmp3/phpmoKsQB.sma(1735) : error 017: undefined symbol "round_start" /home/groups/amxmodx/tmp3/phpmoKsQB.sma(1739) : error 001: expected token: "}", but found "-end of file-" 3 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/phpmoKsQB.amx (compile failed). |
Re: Announceing
Posting the code would help if you want those errors fixed
|
Re: Announceing
well its not mine i am just working on a dead plugin is it ok to post it?
|
Re: Announceing
Look
PHP Code:
You needed a closing Bracket at end |
| All times are GMT -4. The time now is 11:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.