Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Lukas32
New Member
Join Date: Jan 2015
Old 01-10-2015 , 15:15   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #291

Any servers running this mod?
Lukas32 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 01-10-2015 , 16:53   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #292

Quote:
Originally Posted by Lukas32 View Post
Any servers running this mod?
Look at the first post of this topic. There is link to see all servers running this mod.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
erkike93
Member
Join Date: Aug 2013
Old 01-21-2015 , 00:51   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #293

Nice mod bro, good ideas, but i want to ask, is there all kind of bug already fixeds? Because i try to use this on my server, and something it crash, i dont know what is the problem, and debug log dont said anything to me to check, so there is still some bugs to fix, or it is already done and finished?

Thanks in advanced
erkike93 is offline
nikolassss
Junior Member
Join Date: Oct 2009
Location: Argentina
Old 01-23-2015 , 05:20   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #294

Hi Guskis, nice work!
I would like when the detective analize a body appears a text saying to all players who he was and if he was a traitor, innocent or detective. Could this be possible?
For example: XX was analyzed and was traitor

I guess the code should go here...

PHP Code:
public used_use(ident)
{
    if(!
is_user_alive(id))
        return;

    new 
bodyowner entity_get_int(entEV_INT_iuser1);
    if(!
is_user_connected(bodyowner))
        return;

    new 
identified ttt_get_playerdata(bodyownerPD_IDENTIFIED);
    if(
ttt_get_playerstate(id) == PC_DETECTIVE || identified || g_iRoundSpecial[PC_DETECTIVE] == || get_pcvar_num(cvar_allow_scan_anytime))
    {
        if(!
identified)
        {
            new 
scanned get_pcvar_num(cvar_credits_scanned);
            
set_attrib_all(bodyowner1);
            
ttt_set_playerdata(bodyownerPD_IDENTIFIEDtrue);
            
ttt_set_playerdata(bodyownerPD_SCOREBOARDtrue);
            
g_iBodyInfo[bodyowner][BODY_CALLD] = false;

            if(
scanned 0)
            {
                
ttt_set_playerdata(idPD_KARMATEMPttt_get_playerdata(idPD_KARMATEMP) + scanned);
                
client_print_color(idprint_team_default"%s %L"TTT_TAGid"TTT_AWARD5"scanned);
            }

            if(
ttt_get_playerdata(bodyownerPD_KILLEDSTATE) == PC_TRAITOR && ttt_get_specialcount(PC_DETECTIVE) > 0)
            {
                new 
bonuscredits;
                new 
killer ttt_get_playerdata(bodyownerPD_KILLEDBY);
                static 
name[32];
                
get_user_name(bodyownernamecharsmax(name));

                new 
numi;
                static 
players[32];
                
get_players(playersnum"a");
                for(--
numnum >= 0num--)
                {
                    
players[num];
                    if(
ttt_get_playerstate(i) == PC_DETECTIVE)
                    {
                        
bonus get_pcvar_num(cvar_credits_det_bonusdead);
                        
credits ttt_get_playerdata(iPD_CREDITS) + bonus;

                        
ttt_set_playerdata(iPD_CREDITScredits);
                        
client_print_color(iprint_team_default"%s %L"TTT_TAGi"TTT_AWARD3"bonusispecial_names[PC_TRAITOR], name);

                        if(
killer == i)
                        {
                            
bonus get_pcvar_num(cvar_credits_det_trakill);
                            
credits ttt_get_playerdata(iPD_CREDITS) + bonus;
                            
ttt_set_playerdata(iPD_CREDITScredits);
                            
client_print_color(iprint_team_default"%s %L"TTT_TAGi"TTT_AWARD2"bonusispecial_names[PC_TRAITOR], name);
                        }
                    }
                }
            }
        }
        new 
ret;
        
ExecuteForward(g_pShowInfoForwardretidbodyowner);
    }

I hope you help me!! Thank you!!
nikolassss is offline
Tinch06
Junior Member
Join Date: Feb 2015
Location: Buenos Aires
Old 02-10-2015 , 13:22   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #295

I have a question. How many players need the mod for play???? I install the plugin and i see down the screen the Karma but in few seconds it's gone and i dont know why! Help me please!! Sorry for my English, im from Argentina, here is very popular now this plugin!
Tinch06 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 02-11-2015 , 03:48   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #296

Quote:
Originally Posted by erkike93 View Post
Nice mod bro, good ideas, but i want to ask, is there all kind of bug already fixeds? Because i try to use this on my server, and something it crash, i dont know what is the problem, and debug log dont said anything to me to check, so there is still some bugs to fix, or it is already done and finished?

Thanks in advanced
It is working, but no fully completed. But I'm taking a pause for all this CS things. Don't know how long, tho.

Quote:
Originally Posted by nikolassss View Post
Hi Guskis, nice work!
I would like when the detective analize a body appears a text saying to all players who he was and if he was a traitor, innocent or detective. Could this be possible?
For example: XX was analyzed and was traitor

I guess the code should go here...

I hope you help me!! Thank you!!
You can try this, don't know if this works(I'm at work, also I have forgotten alot of pawn ;D)
PHP Code:
public used_use(ident)
{
    if(!
is_user_alive(id))
        return;

    new 
bodyowner entity_get_int(entEV_INT_iuser1);
    if(!
is_user_connected(bodyowner))
        return;

    new 
identified ttt_get_playerdata(bodyownerPD_IDENTIFIED);
    if(
ttt_get_playerstate(id) == PC_DETECTIVE || identified ||  g_iRoundSpecial[PC_DETECTIVE] == ||  get_pcvar_num(cvar_allow_scan_anytime))
    {
        if(!
identified)
        {
            new 
scanned get_pcvar_num(cvar_credits_scanned);
            
set_attrib_all(bodyowner1);
            
ttt_set_playerdata(bodyownerPD_IDENTIFIEDtrue);
            
ttt_set_playerdata(bodyownerPD_SCOREBOARDtrue);
            
g_iBodyInfo[bodyowner][BODY_CALLD] = false;

            if(
scanned 0)
            {
                
ttt_set_playerdata(idPD_KARMATEMPttt_get_playerdata(idPD_KARMATEMP) + scanned);
                
client_print_color(idprint_team_default"%s %L"TTT_TAGid"TTT_AWARD5"scanned);
            }

client_print_color(0print_team_default"%s %s has been identified  as %L"TTT_TAGname0special_names[ttt_get_playerdata(bodyowner,  PD_KILLEDSTATE)]);

            if(
ttt_get_playerdata(bodyownerPD_KILLEDSTATE) == PC_TRAITOR && ttt_get_specialcount(PC_DETECTIVE) > 0)
            {
                new 
bonuscredits;
                new 
killer ttt_get_playerdata(bodyownerPD_KILLEDBY);
                static 
name[32];
                
get_user_name(bodyownernamecharsmax(name));

                new 
numi;
                static 
players[32];
                
get_players(playersnum"a");
                for(--
numnum >= 0num--)
                {
                    
players[num];
                    if(
ttt_get_playerstate(i) == PC_DETECTIVE)
                    {
                        
bonus get_pcvar_num(cvar_credits_det_bonusdead);
                        
credits ttt_get_playerdata(iPD_CREDITS) + bonus;

                        
ttt_set_playerdata(iPD_CREDITScredits);
                        
client_print_color(iprint_team_default"%s  %L"TTT_TAGi"TTT_AWARD3"bonusispecial_names[PC_TRAITOR],  name);

                        if(
killer == i)
                        {
                            
bonus get_pcvar_num(cvar_credits_det_trakill);
                            
credits ttt_get_playerdata(iPD_CREDITS) + bonus;
                            
ttt_set_playerdata(iPD_CREDITScredits);
                            
client_print_color(iprint_team_default,  "%s %L"TTT_TAGi"TTT_AWARD2"bonusispecial_names[PC_TRAITOR],  name);
                        }
                    }
                }
            }
        }
        new 
ret;
        
ExecuteForward(g_pShowInfoForwardretidbodyowner);
    }

Quote:
Originally Posted by Tinch06 View Post
I have a question. How many players need the mod for play???? I install the plugin and i see down the screen the Karma but in few seconds it's gone and i dont know why! Help me please!! Sorry for my English, im from Argentina, here is very popular now this plugin!
You need atleast 3 players to play this mod.

EDIT: Just saw how many servers there are :O I might get back on developing this mod :O I'm nicely surprised because when I went away from pawn, there were only 3 servers max :O You guys are amazing
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 02-11-2015 at 03:50.
GuskiS is offline
ErikMav94
Member
Join Date: Jan 2012
Location: ARG
Old 02-11-2015 , 11:11   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #297

Quote:
Originally Posted by GuskiS View Post
EDIT: Just saw how many servers there are :O I might get back on developing this mod :O I'm nicely surprised because when I went away from pawn, there were only 3 servers max :O You guys are amazing
You are amazing . This mod is very fun!
ErikMav94 is offline
Send a message via Skype™ to ErikMav94
Milo de Escorpio
New Member
Join Date: Feb 2015
Old 02-11-2015 , 14:16   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #298

I have a problem . The mod is going well , but when people want to join my server is closing the game.
Milo de Escorpio is offline
Joluis81
Junior Member
Join Date: Nov 2014
Old 02-13-2015 , 14:12   Re: [v2.5.0, December 2] Trouble in Terrorist Town mod
Reply With Quote #299

I have a problem , not because I do not get the color on some things
Joluis81 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 02-15-2015 , 10:32   Re: [v2.5.1, February 15] Trouble in Terrorist Town mod
Reply With Quote #300

Pushed little update - 2.5.1. Had it done long time ago, nothing special but few new things and bugfixes.
Link to GitHub.

So now guys, I'm waiting for nice requests/ideas for mod Maybe I could add mapsupport, but then I need consulting with mapper.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS 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 09:03.


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