I'll plant the bomb on... 2.3.0 - Let your team know where you'll plant
2 Attachment(s)
I'll plant the bomb on... - v2.3.0 by Kidev
So your team will know Description: This plugin asks (via a menu) to the terrorist who spawns with the bomb on which bomb site he intends to plant the bomb. The terrorist can change his choice after 10 seconds (changeable via a cvar, see below) by left cliking while holding the bomb (right clik is impossible, sorry). He can't change his choice more than one time (changeable via a cvar, see below). If an another terrorist than the one who spawns with the bomb collect it, he can choose his own strategy (changeable via a cvar too, see below) etc... You can change the "Cover me" sound by changing this: PHP Code:
My plugin support from 1 to 5 bomb sites, which are listed whith their names in a menu. Cvars: ipo_toogle (Default: 1)
ipo_change_cooldown (Default: 10.0)
ipo_change_limit (Default: 1)
ipo_print_mode (Default: 2)
ipo_use_rad_cmd (Default: 1)
ipo_reopen_mode (Default: 2)
To do: Nothing, this plugin is complete. Changelog: Code:
v2.3.0 @ 21/11/14 Credits: VEN - For his CS Bomb Scripting tutorial ConnorMcLeod - For a lot of optimizations (v1.3 .. v1.5) TenK - For some testing Multi-Lingual: - EN: -Kid- - FR: -Kid- - ES: paoliita - DE: Mordekay - BG: papyrus_kn and r14170 - MY: JoKeR LauGh - BP: wlacobain - RU: alonelive - TR: Carbon3180 and xD_1991 - SR: RepeR. (Incomplete because of the update) - NL: drekes (Incomplete because of the update) - PL: Abes_Ziomal_PL(Poland) (Incomplete because of the update) Code:
[en] |
Re: I'll plant the bomb on...
nice :):):)
|
Re: I'll plant the bomb on...
can u answer my req ? http://forums.alliedmods.net/showthread.php?t=159228
|
Re: I'll plant the bomb on...
Does this plug-in the time interval between messages in the chat room and on the radio?
For flood control.. |
Re: I'll plant the bomb on...
The menu which ask "Where will you plant the bomb" displays only if the player spawn with bomb (1 time by round), no flood risk.
|
Re: I'll plant the bomb on...
Neat :wink:
Code:
[de] |
Re: I'll plant the bomb on...
Don't include fakemeta util only for fm_find_ent_by_class stock.
Put the stock in your plugin or directly put engfunc( in code, or use find_ent_by_class native from engine module. Also, make a check for info_bomb_target (the other possible bombsite classname). You don't need to count them, just register stuff if you find one. You misused LANG_SERVER, use LANG_PLAYER when you use index=0, use player index (here 'id') when you want to use receiver language, and use LANG_SERVER when you want to force player to see server language (i don't think you want here). EDIT I see what you want to do, then don't put this in the loop or chat will be duplicated (at least chat attempts that will be be blocked due to antoflood plugin or cs limitation), also you could use engclient_cmd there but you can't format with this command (your choice). /EDIT set_fail_state is rather to use when something goes wrong with the plugin so that you have no other choice than disable it. You coud instead do the check at begining of plugin_init and if there are no bombsite, don't register logevent and menu, and pause the plugin if you want with pause() native. Cache get_pcvar_num( useradcmd ) value before you execute the loop and iPlayers[ i ] at the start of each loop iteration. In eventSpawnedWithBomb, check that id is not equal to 0 (or make the alive check before has weapon check). PHP Code:
PHP Code:
I think it's all. |
Re: I'll plant the bomb on...
Quote:
When a player starts to lay a bomb, a chat message will be written "player sets the C4 on A|B. And a radio-message "Cover me". |
Re: I'll plant the bomb on...
Quote:
Quote:
Quote:
|
Re: I'll plant the bomb on...
PHP Code:
-> PHP Code:
Don't return any value in plugin_init. PHP Code:
Would be same to reverse checks (if is_user_alive and user_has_weapon) and put following code into block. |
All times are GMT -4. The time now is 23:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.