19.05.2011, 00:09
Lets say banName is the name of the person being banned, and player1 is the id of the banned player AND, lets say adminName is the person (admin) banning player1 and playerid would be the id of the admin:
Now just try to put it into the dialog. You can change up some stuff in this code. If you don't understand, let me know.
pawn Код:
new player1;
new string[128];
new adminName[MAX_PLAYER_NAME]; GetPlayerName(playerid,adminName,sizeof(adminName));
new banName[MAX_PLAYER_NAME]; GetPlayerName(player1,banName,sizeof(banName));
format(string,sizeof(string),"%s (%d) Has Been Banned By Administrator %s (%d).",adminName,playerid,banName,player1);
SendClientMessageToAll(COLOR_PINK,string);