Raised This Month: $ Target: $400
 0% 

[v2.5.2, March 19] Trouble in Terrorist Town mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ErikMav94
BANNED
Join Date: Jan 2012
Location: Usa
Old 02-27-2015 , 18:28   Re: [v2.5.1, February 15] Trouble in Terrorist Town mod
Reply With Quote #11

when the round ends I can buy anything (using the old style menu)

I solved it by now well

in ttt_items_base

PHP Code:
public client_command(id)
{
    if(!
is_user_alive(id) || ttt_return_check(id))//    <------- HERE!!!
        
return PLUGIN_CONTINUE;

    static 
command[16];
    
read_argv(0commandcharsmax(command));
    for(new 
0<= charsmax(g_szBuyCommands); i++)
    {
        if(
equal(commandg_szBuyCommands[i]))
        {
            if(!
task_exists(id))
                
set_task(0.1"ttt_buymenu_show"id);

            return 
PLUGIN_HANDLED;
        }
    }

    if(
equal(command"client_buy_open"))
    {
        
// CHANGED
        
message_begin(MSG_ONEget_user_msgid("BuyClose"), _id);
        
message_end();
        
ttt_buymenu_show(id);
    }

    return 
PLUGIN_CONTINUE;

PHP Code:
if(!is_user_alive(id) || ttt_return_check(id))
        return 
PLUGIN_CONTINUE
---->

PHP Code:
if(!is_user_alive(id/*|| ttt_return_check(id)*/)//  <------- HERE!!!
        
return PLUGIN_CONTINUE
PHP Code:
stock ttt_return_check(id)
{
    new 
game ttt_get_gamemode();
    if(!
is_user_connected(id) || game == GAME_OFF || game == GAME_ENDED)
        return 
1;

    return 
0;

ErikMav94 is offline
Send a message via ICQ to ErikMav94 Send a message via AIM to ErikMav94 Send a message via Yahoo to ErikMav94 Send a message via Skype™ to ErikMav94
 



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 19:21.


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