View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-18-2020 , 17:33   Re: basebuilder help please
Reply With Quote #5

Quote:
Originally Posted by Ace67 View Post
when the ct wins it does not stay ct ! I want people to ct stay there if they win.
if u can help :/
Try this:

Code:
public msgRoundEnd(const MsgId, const MsgDest, const MsgEntity) {     static Message[192]     get_msg_arg_string(2, Message, 191)     new players[32], num, player     get_players(players, num, "ae", "CT")             if (equal(Message, "#Terrorists_Win"))     {         g_boolRoundEnded = true         set_hudmessage(255, 255, 255, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.2, 1)         show_hudmessage(0, "%L", LANG_SERVER, "WIN_ZOMBIE")         set_msg_arg_string(2, "")         client_cmd(0, "spk %s", WIN_ZOMBIES)                 return PLUGIN_HANDLED     }     else if (equal(Message, "#Target_Saved") || equal(Message, "#CTs_Win"))     {         g_boolRoundEnded = true         set_hudmessage(255, 255, 255, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.2, 1)         show_hudmessage(0, "%L", LANG_SERVER, "WIN_BUILDER")         set_msg_arg_string(2, "")         client_cmd(0, "spk %s", WIN_BUILDERS)                 for (new i = 0; i < num; i++)         {             player = players[i]             cs_set_user_team(player, CS_TEAM_CT) // If humans won stay as the same team         }                         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }

Last edited by Supremache; 09-18-2020 at 17:54.
Supremache is offline