Admin Announce Command
#8

pawn Код:
CMD:newb(playerid, params[])
{
    if(!strlen(params)) return SendClientMessage(playerid,COLOR_GREY, "USAGE: /newb [question]");
    new Lname[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid,Lname,sizeof(Lname));
    format(string, sizeof(string), "[NEWBIE]%s {FFFFFF}%s", Lname, params);
    SendClientMessageToAll(COLOR_BLUE, string);
    new year, month, day, Hour, Minute, Second;
    getdate(year, month, day);
    gettime(Hour, Minute, Second);
    format(string,sizeof(string),"[%d/%d/%d :: %02d:%02d:%02d] - %s has used the command /newb (%s) \r\n", day, month, year, Hour, Minute, Second, Lname, params);
    cmdlog = fopen("files/logs/chat.txt", io_append);
    fwrite(cmdlog,string);
    fclose(cmdlog);
    return 1;
}
The guy above me needs a [NEWBIE] tag...
Reply


Messages In This Thread
Admin Announce Command - by StuartD - 31.12.2012, 22:21
Re : Admin Announce Command - by [HRD]Mar1 - 31.12.2012, 22:45
Re: Admin Announce Command - by StuartD - 31.12.2012, 22:57
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:15
Re: Admin Announce Command - by Threshold - 31.12.2012, 23:21
Re: Admin Announce Command - by StuartD - 31.12.2012, 23:40
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:43
Re: Admin Announce Command - by Threshold - 01.01.2013, 10:13

Forum Jump:


Users browsing this thread: 8 Guest(s)