#include <a_samp>
new Celula[128], Nome[24], bool:AFK[MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("FS AFK Criado Por Mau Tito Ligado.");
print("--------------------------------------\n");
return true;
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print("FS AFK Desligado.");
print("--------------------------------------\n");
return true;
}
main()
{
print("\n----------------------------------");
print("Criado Por Mau Tito e Editado Pelo Jonathan.");
print("----------------------------------\n");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/afk", cmdtext, true) == 0)
{
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 Player {7FFFD4}%s {1E90FF}Ficou AFK.", Nome);
SendClientMessageToAll(-1, Celula);
return 1;
}
if (strcmp("/sairafk", cmdtext, true) == 0)
{
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 Player {7FFFD4}%s {1E90FF}Saiu AFK.", Nome);
SendClientMessageToAll(-1, Celula);
return true;
}
if (strcmp("/playersafk", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF0000FF , "~x Players AFK x~");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if((AFK[i] == true))
{
GetPlayerName(i, Nome, sizeof(Nome));
format(Celula, 128, "%s", Nome);
SendClientMessage(playerid, -1, Celula);
}
}
}
return true;
}
return false;
}
, estou melhorando.
. Parabйns!
|
kkkkk isso memo po se ve qui ele nao й tao preguisoso mittos e lipe entao da proxima vez fala oque tah ruim mais ajuda em vez de apenas critica e quanto ao outro topico lipe eu so criaзa? acho ki nao em ^^
|