AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kill Special Player, Round finish (https://forums.alliedmods.net/showthread.php?t=217791)

Jhob94 06-07-2013 16:31

Kill Special Player, Round finish
 
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
    
}



hornet 06-07-2013 18:15

Re: Kill Special Player, Round finish
 
Search for Round Terminator.

Jhob94 06-07-2013 19:02

Re: Kill Special Player, Round finish
 
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?

hornet 06-07-2013 22:02

Re: Kill Special Player, Round finish
 
Quote:

Originally Posted by Jhob94 (Post 1966435)
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.

Jhob94 06-08-2013 10:41

Re: Kill Special Player, Round finish
 
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 :/

hornet 06-08-2013 11:44

Re: Kill Special Player, Round finish
 
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.

Jhob94 06-08-2013 11:56

Re: Kill Special Player, Round finish
 
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)

wickedd 06-08-2013 12:11

Re: Kill Special Player, Round finish
 
If you are having trouble with "Round Terminator" post them in that thread.

Jhob94 06-08-2013 12:22

Re: Kill Special Player, Round finish
 
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)

TheDS1337 06-08-2013 12:47

Re: Kill Special Player, Round finish
 
you CS Ham Bots API by MerCyLeZZ, or see how to check if a client is bot in ZP 4.3


All times are GMT -4. The time now is 16:24.

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