Raised This Month: $32 Target: $400
 8% 

basebuilder help please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 09-20-2020 , 06:04   basebuilder help please
Reply With Quote #1

Good morning all,
I am looking for a Basebuilder plugin which allows the terros that gain the game to be switched to side, and that when the sides win they stay side otherwise they are transferred to terros.

p.s: is it also possible to change the distance for the plates?

Thank you,

Example :

like when ct teamwin he save ct
when ct lose he got tp to t

and like terrorist team
terrorist win tp to ct
terrorist lose save to t

when the ct wins it does not stay ct ! I want people to ct stay there if they win.

I using Basebuilder 5.4
Ace67 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-20-2020 , 16:24   Re: basebuilder help please
Reply With Quote #2

Quote:
Originally Posted by Ace67 View Post
Good morning all,
I am looking for a Basebuilder plugin which allows the terros that gain the game to be switched to side, and that when the sides win they stay side otherwise they are transferred to terros.

p.s: is it also possible to change the distance for the plates?

Thank you,

Example :

like when ct teamwin he save ct
when ct lose he got tp to t

and like terrorist team
terrorist win tp to ct
terrorist lose save to t

when the ct wins it does not stay ct ! I want people to ct stay there if they win.

I using Basebuilder 5.4
Open basebuilder.sma file, Go to "public msgRoundEnd" faction and replace those codes


PHP Code:
public msgRoundEnd(const MsgId, const MsgDest, const MsgEntity)
{
    static 
Message[192]
    
get_msg_arg_string(2Message191)
    
    new 
players[32], numplayer
    get_players
(playersnum"ae""CT")
    
    
set_hudmessage(255255255, -1.00.4006.06.00.10.21)
    
    if(
equal(Message"#Game_bomb_drop"))
        return 
PLUGIN_HANDLED
    
    
if (equal(Message"#Terrorists_Win"))
    {
        
show_hudmessage(0"Zombies Win!")
        
set_msg_arg_string(2"")
        switch (
random_num(14))
        {
            case 
1client_cmd(0"spk ambience/the_horror1.wav")
            case 
2client_cmd(0"spk ambience/the_horror2.wav")
            case 
3client_cmd(0"spk ambience/the_horror3.wav")
            case 
4client_cmd(0"spk ambience/the_horror4.wav")
        }
        return 
PLUGIN_HANDLED
    
}
    else if (
equal(Message"#Target_Saved") || equal(Message"#CTs_Win"))
    {
        
show_hudmessage(0"Builders Win!")
        
set_msg_arg_string(2"")
        switch (
random_num(13))
        {
            case 
1client_cmd(0"spk barney/ba_another.wav")
            case 
2client_cmd(0"spk barney/ba_firepl.wav")
            case 
3client_cmd(0"spk barney/ba_seethat.wav")
        }
        
        for (new 
0numi++)
        {
            
player players[i]
            
cs_set_user_team(playerCS_TEAM_CT// If humans won stay as the same team
        
}
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 09-21-2020 , 10:58   Re: basebuilder help please
Reply With Quote #3

i gonna test it
Ace67 is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 09-22-2020 , 10:44   Re: basebuilder help please
Reply With Quote #4

dont work :/
Ace67 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-22-2020 , 14:29   Re: basebuilder help please
Reply With Quote #5

Quote:
Originally Posted by Ace67 View Post
dont work :/
I was know, before i gave you those codes but the problem is i have to edit something on the mod but i choose the simple idea

P.s: it's work but i was have to check if human won on "log event round end"
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 09-23-2020 , 14:10   Re: basebuilder help please
Reply With Quote #6

k, i gonna test again
Ace67 is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 09-26-2020 , 06:44   Re: basebuilder help please
Reply With Quote #7

work thanks u!
Ace67 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 07:24.


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