Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================================================================
- //SISTEM AFK v3.0 CRIADO POR MAU_TITO
- //VISITE MEU BLOG SUPORTE-TITO.BLOGSPOT.COM
- //MSN PARA CONTATO:[email protected]
- //==============================================================================
- #include <a_samp>
- new Celula[128], Nome[24], bool:AFK[MAX_PLAYERS];
- new Cores[] =
- {
- 0x5EB7E3AA,
- 0xCD6CF6F6,
- 0x685000F6
- };
- forward SendMensagens();
- new Mensagens[2][256] =
- {
- "Atençao Comandos Afk /afk /sairafk /listafk.",
- "Sistema Afk v3.0 Criado Por mau_tito."
- };
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Ligando... ");
- print("FS AFK Criado Por Mau Tito Ligado.");
- print("--------------------------------------\n");
- return true;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Desligando... ");
- print("FS AFK Criado Por Mau Tito.");
- print("--------------------------------------\n");
- return true;
- }
- main()
- {
- print("\n----------------------------------");
- print("Criado Por Mau Tito.");
- print("FS AFK Criado Por Mau Tito.");
- print("----------------------------------\n");
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/afk", cmdtext, true) == 0)
- {
- for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
- if(AFK[playerid] == true) return SendClientMessage(playerid, -1," Você Já Está AFK");
- AFK[playerid] = true;
- TogglePlayerControllable(playerid, 0);
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(Celula, sizeof(Celula), "{1E90FF}O Jogador {7FFFD4}%s {1E90FF}Esta Ausente.", Nome);
- GameTextForPlayer(playerid, "~Y~Voce Esta ~Y~em Modo~R~ Afk", 5000, 5);
- SendClientMessageToAll(-1, Celula);
- return 1;
- }
- if (strcmp("/sairafk", cmdtext, true) == 0)
- {
- for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
- if(AFK[playerid] == false) return SendClientMessage(playerid, -1," Você Já Não Está AFK.");
- AFK[playerid] = false;
- TogglePlayerControllable(playerid, 1);
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(Celula, sizeof(Celula), "{1E90FF}O Jogador {7FFFD4}%s {1E90FF}Voltou Ao Jogo.", Nome);
- GameTextForPlayer(playerid, "~Y~Voce Saiu ~Y~Do Modo~R~ Afk", 5000, 5);
- SendClientMessageToAll(-1, Celula);
- return true;
- }
- if (strcmp("/playersafk", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF , "||======Players Afk======||");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if((AFK[i] == true))
- {
- GetPlayerName(i, Nome, sizeof(Nome));
- GameTextForPlayer(playerid, "~R~|======Players Afk======|", 5000, 5);
- format(Celula, 130, "%s", Nome);
- SendClientMessage(playerid, -1, Celula);
- }
- }
- }
- return true;
- }
- return false;
- }
- public SendMensagens()
- {
- new string[265];
- new random1 = random(sizeof(Mensagens));
- new random2 = random(sizeof(Cores));
- format(string, sizeof(string), "%s", Mensagens[random1]);
- SendClientMessageToAll(Cores[random2],string);
- return 1;
- }
- //==============================================================================
- //SISTEM AFK v3.0 CRIADO POR MAU_TITO
- //VISITE MEU BLOG SUPORTE-TITO.BLOGSPOT.COM
- //MSN PARA CONTATO:[email protected]
- //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment