CMD:achat(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You must be level 2 admin and up to use this command.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /achat [text]");
if(AntiAdv(playerid, params)) return 1;
if(PlayerInfo[playerid][pAdmin]) format(string, sizeof(string), "* Admin Accouncement: %s %s *", RPN(playerid), params);
else format(string, sizeof(string), "*Admin Announcement: %s %s *", RPN(playerid), params);
SendClientMessageToAll(COLOR_CYAN, string);
return 1;
}
CMD:achat(playerid, params[]) { new string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You must be level 2 admin and up to use this command."); if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /achat [text]"); if(AntiAdv(playerid, params)) return 1; format(string, sizeof(string), "*Admin Announcement: %s *", params); // REMOVED RPN(playerid) and the %s. SendClientMessageToAll(COLOR_CYAN, string); return 1; }
If this is what I think you're asking for.. this should work.
Код:
CMD:achat(playerid, params[]) { new string[128]; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You must be level 2 admin and up to use this command."); if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /achat [text]"); if(AntiAdv(playerid, params)) return 1; format(string, sizeof(string), "*Admin Announcement: %s *", params); // REMOVED RPN(playerid) and the %s. SendClientMessageToAll(COLOR_CYAN, string); return 1; } |