29.09.2012, 06:53
Double Post Soz.
CMD:tag(playerid, params[])
{
if(IsPlayerAdmin(playerid)
{
new player, tagname[20];
if(sscanf(params, "us", player, tagname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tag [Playerid] [Tag]");
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(player, name, sizeof(name));
format(str, sizeof(str), "[%s]%s", tagname, name);
SetPlayerName(player, str);
return 1;
}
else
{
SendClientMessage(playerid, WHITE,"You must login as administrator");
}
}