Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define GoldColor 0xFFD700FF
- #define COR_VermelhoClaro 0xF60000AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("*********************************************");
- print(" AFK System By : [EoS].FuneraL.[BC] - Ligado ");
- print("*********************************************");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("************************************************");
- print(" AFK System By : [EoS].FuneraL.[BC] - Desligado ");
- print("************************************************");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, GoldColor, "[SERVER]: Este Servidor Usa o FilterScript AFK - Feito Por : [EoS].FuneraL.[BC]");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/afk", cmdtext, true, 10) == 0)
- {
- new pname[MAX_PLAYER_NAME];
- new string [256];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "[FilterScript]: %s Está Ausente (/afk)", pname);
- SendClientMessageToAll(0xFFD700FF, string);
- SetPlayerHealth(playerid, 99999*99999);
- SetPlayerColor(playerid, GoldColor);
- TogglePlayerControllable(playerid,0);
- return 1;
- }
- if (strcmp("/sairafk", cmdtext, true, 10) == 0)
- {
- new pname[MAX_PLAYER_NAME];
- new string [256];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "[FilterScript]: %s Voltou para o Servidor (/sairafk)", pname);
- SendClientMessageToAll(0xFFD700FF, string);
- SetPlayerHealth(playerid, 100);
- SetPlayerColor(playerid, GoldColor);
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment