06.01.2013, 00:44
(
Последний раз редактировалось wouter0100; 06.01.2013 в 00:49.
Причина: SendClientMessage to SendClientMessageToAll
)
Код:
CMD:cleardeathwindow(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { for(new i=1; i >= 20; i++) { SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255); } SendClientMessageToAll(lightred, "[{B4B5B7}Admin{FF6347}]{B4B5B7} have cleared the Killfeed!"); } else return SendClientMessage(playerid, lightred, "[{B4B5B7}System{FF6347}]: {B4B5B7}You aren't authorized to use this command."); return 1; }
When this don't work try this:
Код:
CMD:cleardeathwindow(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { for(new i=1; i <= 20; i++) { SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 255); } SendClientMessageToAll(lightred, "[{B4B5B7}Admin{FF6347}]{B4B5B7} have cleared the Killfeed!"); } else return SendClientMessage(playerid, lightred, "[{B4B5B7}System{FF6347}]: {B4B5B7}You aren't authorized to use this command."); return 1; }