18.09.2015, 12:37
PHP код:
new pname[MAX_PLAYER_NAME], pname2[MAX_PLAYER_NAME];
Now lets get the players name
PHP код:
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
GetPlayerName(targetplayer, pname2, MAX_PLAYER_NAME);
PHP код:
format(string, sizeof string, "%s has been banned by Administrator %s", pname2, pname);
I hope you'll understand this.
Note: You have to define the string either, but I just explained you the name part.
Edit: Oh shit lol, I just noticed you just wanted the reason.
Well that's kinda the same shit
PHP код:
new reason[75];
PHP код:
if(sscanf(params, "s", reason)) return SCM(bla, bla, bla);
PHP код:
format(string, sizeof string, "%s has been banned by %s [%s]", pname2, pname, reason);