Raised This Month: $ Target: $400
 0% 

#Game_Commencing help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tristanoff
Junior Member
Join Date: Oct 2011
Old 03-31-2014 , 12:38   #Game_Commencing help
Reply With Quote #1

Hi, im triying to force/execute Game commencing ( its when there is just 1 player in a team and another one (2) connects and join enemy team. A message (center) "Game commencing" its shown and the server restart the round)...

Func that doesn't work:
PHP Code:
public GameComencing()
{
    
message_begin(MSG_ALLget_user_msgid("TextMsg"), {0,0,0}, 0);
    
write_byte(print_center);
    
write_string("#Game_Commencing");
    
message_end();

Some func to see the message ( never happens) :
PHP Code:
public plugin_init()
{
   
register_message(get_user_msgid("TextMsg"), "onTextMsg");
}

public 
onTextMsg(msgIdmsgDestmsgEnt)
{
    static 
buffer[32];
    
get_msg_arg_string(2buffer31);

    if(
equal(buffer"#Game_Commencing"))
    {
       
server_print("Message: %d - %s - %d - %d"msgIdbuffermsgDestmsgEnt);
    }

    return 
PLUGIN_CONTINUE;

tristanoff is offline
 



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 06:03.


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