Admin chat won't allow spaces
#4

pawn Код:
COMMAND:ac(playerid, params[])
{
    if(PlayerInfo[playerid][AdminLevel] < 1)  return SendClientMessage(playerid, COLOR_YELLOW, "You are not an admin");
    new message[128];
    if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /ac [message]");
    new pname[MAX_PLAYER_NAME],str[sizeof message];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(str,sizeof(str),"Server Admin %s: %s", pname, message);
    SendMessageToAdmins(COLOR_GREEN,str);
    return 1;
}
Reply


Messages In This Thread
Admin chat won't allow spaces - by jueix - 26.08.2012, 08:36
Re: Admin chat won't allow spaces - by Sniper Kitty - 26.08.2012, 08:39
Re: Admin chat won't allow spaces - by Dan. - 26.08.2012, 08:41
Re: Admin chat won't allow spaces - by leonardo1434 - 26.08.2012, 09:29
Re: Admin chat won't allow spaces - by jueix - 26.08.2012, 09:57
Re: Admin chat won't allow spaces - by jueix - 26.08.2012, 10:20

Forum Jump:


Users browsing this thread: 2 Guest(s)