27.03.2009, 17:01
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; } ////////////////////////////////////////////////////////////////////////////////