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

================================================== ===============================================
a simple afk system thats
easy to use as a gm addon or fs
================================================== ===============================================

================================================== ===============================================
Edit log

v1 : player cant spam with /afk and /brb , player will be freezed if he types /afk /brb if he types /back he will be unfreezed
v2 : if player types /brb /back the player cant talk if he types /back he can talk again

================================================== ===============================================
download links
v1
Version 1

v2
Version 2
================================================== ===============================================
Reply
#2

looks really nice
Reply
#3

simple and eazy but its useful, nice :P
Reply
#4

Why do you have it so its repeating the color to make new lines?
Код:
format(string,sizeof(string),"~B~~B~~B~~B~~B~~B~~B~~B~~B~~B~~B~~B~%s ~B~is back.", playername);
Tip: Use ~n~ to make new lines
Reply
#5

this is good
Reply
#6

Good job!
Reply
#7

thank you all
Reply
#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
#9

#
format(string,sizeof(string),"~B~%s ~B~is back.", playername);

is this a textdraw?
Reply
#10

no
pawn Код:
GameTextForAll(string,3000,3);
its not a textdraw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)