Quote:
Originally Posted by napster_10
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(admin, Prefix2, "{darkred}%t", "Permabanned player", Name); } else { CShowActivityEx(admin, Prefix2, "{darkred}%t", "Permabanned player reason", Name, Reason); } } else { if (Reason[0] == '\0') { CShowActivityEx(admin, Prefix2, "{darkred}%t", "Banned player", Name, time); } else { CShowActivityEx(admin, Prefix2, "{darkred}%t", "Banned player reason", Name, time, Reason); } }
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)", admin, client, Reason);
} else {
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Permanent \x01Banned \x01player \x04%N \x01! (\x07Reason: \x04%s\x01)", admin, client, Reason);
}
} 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)", admin, client, time, Reason);
} else {
PrintToChatAll("\x01★ \x04[SM] \x07ADMIN\x04 %N \x04Banned \x01player \x04%N \x01for \x04%d minutes\x01! (\x07Reason: \x04%s\x01)", admin, client, time, Reason);
}
}
PrintToChatAll = Print for all players in chat
PrintToChat = Only for you
__________________