AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Round over problem (https://forums.alliedmods.net/showthread.php?t=117920)

Lure.d 02-06-2010 07:42

Round over problem
 
Hello folks, i ran out of luck again.
I've finished my private jailbreak plugin. But my method with HLTV:
PHP Code:

register_event("HLTV""event_new_round""a""1=0""2=0"); 

seem to only work in non-jailbreak servers. Becouse jailbreak uses custom messages code:
PHP Code:

public message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{    
    static 
message[32]
    
get_msg_arg_string(2messagecharsmax(message))
    
    if(
equal(message"#Terrorists_Win"))
    {
        
set_msg_arg_string(2"Villains(idk ppl in jail) win!")
    }
    else if(
equal(message"#CTs_Win"))
    {
        
set_msg_arg_string(2"Prison guards win!")
    }


Ive translated the messages sent, but i believe they dont actually matter.
So how shall i get my event_new_round, with these messages? :/
I've tired this:
PHP Code:

register_event("HLTV""event_new_round_ct""a""#CTs_Win""2=0")
register_event("HLTV""event_new_round_t""a""#Terrorists_Win""2=0"

Since i dont have a clue how the hltv gets it, please help me!

Arkshine 02-06-2010 08:16

Re: Round over problem
 
#Terrorists_Win and #CTs_Win has nothing to do with HLTV event.

Lure.d 02-06-2010 08:34

Re: Round over problem
 
blah, got over with this problem. In this case i used hamsandwich, and on player spawn did my stuff like it should be. Anyways thanks for letting me know that hltv has nothing to do with it :D


All times are GMT -4. The time now is 07:26.

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