View Single Post
PorcusorulMagic
Member
Join Date: Dec 2018
Location: Romania
Old 05-25-2019 , 11:17   Re: change color ban message
Reply With Quote #7

Quote:
Originally Posted by napster_10 View Post
ok thx..but what i found out is that i dont even have basebans.smx so i had to change the sbpp_main.smx from sourcebans and it was with showactivity and not printtochat, thats why i was confused

PHP Code:
    if (!time)
    {
        if (
Reason[0] == '\0')
        {
            
CShowActivityEx(adminPrefix2"{darkred}%t""Permabanned player"Name);
        } else {
            
CShowActivityEx(adminPrefix2"{darkred}%t""Permabanned player reason"NameReason);
        }
    } else {
        if (
Reason[0] == '\0')
        {
            
CShowActivityEx(adminPrefix2"{darkred}%t""Banned player"Nametime);
        } else {
            
CShowActivityEx(adminPrefix2"{darkred}%t""Banned player reason"NametimeReason);
        }
    } 
still not perfect cuz this ADMIN isnt red now but its ok so far
and im not sure if its only me as admin who sees that or people in general, wenn i ban i see [Sourcebans++] Tag but others have still [SM] and i have no clue whys that or this [SM] is only a console message and won't appear in chat right?
I did it for Sourcebans too , i will come back with an edit.
PHP Code:
    if (!time)
    {
        if (
Reason[0] == '\0')
        {
        
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Permanent \x01Banned \x01player \x04%N \x01! (\x07Reason: \x04%s\x01)"adminclientReason);
        } else {
        
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Permanent \x01Banned \x01player \x04%N \x01! (\x07Reason: \x04%s\x01)"adminclientReason);
        }
    } else {
        if (
Reason[0] == '\0')
        {
        
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Banned \x01player \x04%N \x01for \x04%d minutes\x01! (\x07Reason: \x04%s\x01)"adminclienttimeReason);
        } else {
        
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Banned \x01player \x04%N \x01for \x04%d minutes\x01! (\x07Reason: \x04%s\x01)"adminclienttimeReason);
        }
    } 
PrintToChatAll = Print for all players in chat
PrintToChat = Only for you
__________________
Steam - https://steamcommunity.com/id/porcusorulmagic
Discord - PorcusorulMagic#4908

Last edited by PorcusorulMagic; 05-25-2019 at 11:23. Reason: Sourcebans Ban Message
PorcusorulMagic is offline