[FS] Afk sytem v2 is out -
radi - 17.08.2009
================================================== ===============================================
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
================================================== ===============================================
Re: [FS] Afk sytem -
James_Alex - 17.08.2009
looks really nice
Re: [FS] Afk sytem -
Eazy_Efolife - 17.08.2009
simple and eazy but its useful, nice :P
Re: [FS] Afk sytem -
StrickenKid - 17.08.2009
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
Re: [FS] Afk sytem -
XCultz - 18.08.2009
this is good
Re: [FS] Afk sytem -
DarkClone - 18.08.2009
Good job!
Re: [FS] Afk sytem -
radi - 18.08.2009
thank you all
Re: [FS] Afk sytem v2 is out -
radi - 21.08.2009
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;
}
Re: [FS] Afk sytem v2 is out -
DauerDicht - 21.08.2009
#
format(string,sizeof(string),"~B~%s ~B~is back.", playername);
is this a textdraw?
Re: [FS] Afk sytem v2 is out -
radi - 21.08.2009
no
pawn Код:
GameTextForAll(string,3000,3);
its not a textdraw