[FilterScript] [FS] AFK Script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] AFK Script (
/showthread.php?tid=69868)
[FS] AFK Script -
Blizzone - 21.03.2009
Hi I have scripted an AFK script its nothing special, but in version 2.0 is what good new about this
sry for my bad english im from germany
PASTEBIN
or
Re: [FS] AFK Script -
Basss - 21.03.2009
somethimes i ask me why ppls post an afk script as fs <.<
you shoud post that in little codes and snippets or so but n1
Re: [FS] AFK Script -
Blizzone - 21.03.2009
ohh sry
but thx
Re: [FS] AFK Script -
Konrads - 21.03.2009
just a thing m8 what are the comands u didnt told about it and i dont see a thing
Re: [FS] AFK Script -
Rks25 - 21.03.2009
yes, it should be a snippet or something.
edit to konrads: /afk and /re
Re: [FS] AFK Script -
Blizzone - 21.03.2009
/Pastebin link fixxed
Re: [FS] AFK Script -
ICECOLDKILLAK8 - 21.03.2009
Why define all them colors?
Re: [FS] AFK Script -
Blizzone - 21.03.2009
i do that always
Re: [FS] AFK Script -
Abox - 27.03.2009
Script translated in French.
Код:
/////////////////////////////////
// AFK Script ///// Translated //
// von /////In French By//
// <|Chilla|> /////Dante_Steven//
/////////////////////////////////
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
// COLORS
#define COLOR_GREY 0xBEBEBEAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREEN 0x008C0000
#define color_green 0x33AA33AA
#define color_dgreen 0x33AA33AA
#define COLOR_BLACK 0x000000
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_YELLOW 0xF6F60000
#define COLOR_BLUE 0x0000F600
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_RED 0xCE000000
#define color_lred 0xAA3333AA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_CADETBLUE 0x5F9EA0
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_INVISIBLE 0xFFFFFF00
#define COLOR_ORANGE 0xFF830000
#define color_lorange 0xFF830000
#define COLOR_SHOW 0xFFC4C4FF
///////////////////////////
// ISTAFK, STRING, PNAME //
new istafk[MAX_PLAYERS];
new string[48];
new pName[16];
new string2[48];
new s[48];
new pName2[16];
//////////////////////////
////////////////////////////////////////////////////////////////////////////////
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Filterscript von <|Chilla|> || LOADED ");
print("--Translated in French by Dante_Steven--");
print("--------------------------------------\n");
return 1;
}
////////////////////////////////////////////////////////////////////////////////
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Filterscript von <|Chilla|> || UNLOADED");
print("--Translated in French by Dante_Steven--");
print("--------------------------------------\n");
return 1;
}
////////////////////////////////////////////////////////////////////////////////
#else
#endif
////////////////////////////////////////////////////////////////////////////////
public OnPlayerCommandText(playerid, cmdtext[])
{
////////////////////////// AFK /////////////////////////////////////////////
if (strcmp("/abs", cmdtext, true, 4) == 0)
{
if(istafk[playerid] == 0)
{
istafk[playerid] = 1;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof (string), " ** %s Est a prйsent absent! **", pName);
TogglePlayerControllable(playerid, 0);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_GREEN, "Tape /re pour quitter le mode Absent!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERREUR : Vous кtes dйjа ABS.");
}
}
////////////////////////// RE //////////////////////////////////////////////
if (strcmp("/re", cmdtext, true, 3) == 0)
{
if(istafk[playerid] == 1)
{
istafk[playerid] = 0;
GetPlayerName(playerid, pName, sizeof(pName));
format(string2, sizeof (string2), " ** %s Est de retour! **", pName);
format(s, sizeof (s), " Rebonjour %s !", pName2);
TogglePlayerControllable(playerid, 1);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
GameTextForPlayer(playerid, s, 2500, 3);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERREUR : Vous n'кtes pas ABS.");
}
}
return 0;
}
////////////////////////////////////////////////////////////////////////////////
Re: [FS] AFK Script -
fbi-hunter - 29.07.2009
cool gemacht man