Quote:
Originally Posted by Smikkeltoetje
pawn Код:
CMD:server(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), "*SERVER: %s *", params); SendClientMessageToAll(COLOR_CYAN, string); return 1; }
|
cool but, is this copy paste? i edited it and remove something so it would work without any compiling errors try this
pawn Код:
CMD:server(playerid, params[])
{
new
string[128]
;
if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be Rcon Login to use this command");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, "USAGE: /achat [text]");
if(AntiAdv(playerid, params)) return 1;
format(string, sizeof(string), "*SERVER: %s *", params);
SendClientMessageToAll(-1, string);
return 1;
}