[FilterScript] [FS] Afk sytem v2 is out
#8

version 2 is out
oops sorry for double post

if you are using a rp script with /pm in it you can use this

pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
    if(Afk[playerid]==0)
    {
      if(printpublic == 1){printf("Public-Print: OnPlayerPrivmsg(%d, %d, %s)", playerid, recieverid, text);}
        new string[128];
        new recievername[MAX_PLAYER_NAME];
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername, 24);
        GetPlayerName(recieverid, recievername, 24);
      format(string, sizeof(string), "PM from %s to %s: %s", playername, recievername, text);
      SendPrivmsgToAdmins(COLOR_YELLOW, string);

      format(string, sizeof(string), "%s to %s: %s\n", playername, recievername, text);
        new File:hFile;
        hFile = fopen("/logs/pm.cfg", io_append);
        fwrite(hFile, string);
        fclose(hFile);
    }
    else
    {
        SendClientMessage(playerid,0xFF0000AA, "You can not use /pm when you are afk");
    }
    return 1;
}
Reply


Messages In This Thread
[FS] Afk sytem v2 is out - by radi - 17.08.2009, 20:46
Re: [FS] Afk sytem - by James_Alex - 17.08.2009, 22:48
Re: [FS] Afk sytem - by Eazy_Efolife - 17.08.2009, 22:58
Re: [FS] Afk sytem - by StrickenKid - 17.08.2009, 23:44
Re: [FS] Afk sytem - by XCultz - 18.08.2009, 01:56
Re: [FS] Afk sytem - by DarkClone - 18.08.2009, 05:36
Re: [FS] Afk sytem - by radi - 18.08.2009, 06:10
Re: [FS] Afk sytem v2 is out - by radi - 21.08.2009, 11:37
Re: [FS] Afk sytem v2 is out - by DauerDicht - 21.08.2009, 11:50
Re: [FS] Afk sytem v2 is out - by radi - 21.08.2009, 11:52

Forum Jump:


Users browsing this thread: 3 Guest(s)