Raised This Month: $ Target: $400
 0% 

Kill Special Player, Round finish


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-07-2013 , 16:31   Kill Special Player, Round finish
Reply With Quote #1

Hi
How can i make round finish when victim have an bool?
PHP Code:
public eDeath() 
{
    new 
attacker read_data(1)
    new 
victim read_data(2)
 
    if(
Special_Player[victim])
    {
        
// Round Finish
    
}

__________________

Last edited by Jhob94; 06-07-2013 at 16:56.
Jhob94 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-07-2013 , 18:15   Re: Kill Special Player, Round finish
Reply With Quote #2

Search for Round Terminator.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-07-2013 , 19:02   Re: Kill Special Player, Round finish
Reply With Quote #3

Thanks
Anyway iam having a problem with something else...
It doesnt set random bot...
PHP Code:
new Special_Bot[33]

public 
plugin_init()
{    
    
register_event("HLTV""event_new_round""a""1=0""2=0")
}

public 
event_new_round()
{
    
set_task(2.0"set_special_bot")
}

public 
set_special_bot()
{
    new 
players[32], count
    get_players
(playerscount"adh")

    if(
count)
    {
        new 
iPlayer players[random(count)]
        
Special_Bot[iPlayer] = true
        set_user_health
(iPlayer250)
    }

Edit:
Having this problem:
Error: Number of arguments does not match definition on line 233
Line: TerminateRound( RoundEndType_TeamExtermination, TeamWinning_Ct )
Do i need use orpheu?
__________________

Last edited by Jhob94; 06-07-2013 at 19:18.
Jhob94 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-07-2013 , 22:02   Re: Kill Special Player, Round finish
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
Thanks
Anyway iam having a problem with something else...
It doesnt set random bot...
Your code should work just fine. Also Special_Bot should be defined as bool.

Quote:
Having this problem:
Error: Number of arguments does not match definition on line 233
Line: TerminateRound( RoundEndType_TeamExtermination, TeamWinning_Ct )
Do i need use orpheu?
Yes you need to use Orpheu. Make sure you take a thorough read of the plugin's thread so you install the required signatures aswell.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-08-2013 , 10:41   Re: Kill Special Player, Round finish
Reply With Quote #5

Lol problem was really bool, noob fail x)
Anyway iam having problems when i use the round terminator, plugins have bad load... I put debug but it says that isnt using debug :/
__________________
Jhob94 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-08-2013 , 11:44   Re: Kill Special Player, Round finish
Reply With Quote #6

Guessing games aren't my strong suit. It could be a number of things, considering the lack of information you've provided.

Post the output of the following commands:
Code:
rcon meta list
rcon meta version
rcon amxx modules
rcon amxx plugins
rcon version
rcon status
Also post the Orpheu signature scan log.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-08-2013 , 11:56   Re: Kill Special Player, Round finish
Reply With Quote #7

Cant go in server at moment, gonna do it later, btw i can go ftp, there is errors without debug. (maybe you can know +/- the problem with it)
PHP Code:
L 06/08/2013 12:38:19String formatted incorrectly parameter 4 (total 3)
L 06/08/2013 12:38:19: [AMXXRun time error 25 (plugin "kjb_test.amxx") - debug not enabled!
L 06/08/2013 12:38:19: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes).
L 06/08/2013 12:38:19String formatted incorrectly parameter 4 (total 3)
L 06/08/2013 12:38:19: [AMXXRun time error 25 (plugin "kjb_test.amxx") - debug not enabled!
L 06/08/2013 12:38:19: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes).
L 06/08/2013 12:58:35Start of error session.
L 06/08/2013 12:58:35Info (map "de_aztec_cz") (file "addons/amxmodx/logs/error_20130608.log")
L 06/08/2013 12:58:35: [AMXXInvalid Plugin (plugin "round_terminator.amxx")
L 06/08/2013 13:02:33Start of error session.
L 06/08/2013 13:02:33Info (map "de_aztec_cz") (file "addons/amxmodx/logs/error_20130608.log")
L 06/08/2013 13:02:33: [AMXXInvalid Plugin (plugin "round_terminator.amxx"
About signatures, i just extracted and directly copied to the ftp. Signatures of first post(dont know if have more)
__________________

Last edited by Jhob94; 06-08-2013 at 11:59.
Jhob94 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-08-2013 , 12:11   Re: Kill Special Player, Round finish
Reply With Quote #8

If you are having trouble with "Round Terminator" post them in that thread.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-08-2013 , 12:22   Re: Kill Special Player, Round finish
Reply With Quote #9

Ok, anyway, just a question.
if i use:
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
Bots arent in it right? If yes, what is the right entity classname? I did search but didnt found x)
__________________
Jhob94 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-08-2013 , 12:47   Re: Kill Special Player, Round finish
Reply With Quote #10

you CS Ham Bots API by MerCyLeZZ, or see how to check if a client is bot in ZP 4.3
TheDS1337 is offline
Reply



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 16:24.


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