22.02.2012, 19:58
it's the code when player exit from the server not the banning code ..
PHP код:
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "(Crash) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
case 1: format(string, sizeof(string), "(Leaving) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
case 2: format(string, sizeof(string), "(Kicked/Banned) {FFFFFF}.йца одщшъ {FF0000}%s {FFFFFF}(id: %d)", pName, playerid);
}
scmToAll(red, string);