[FilterScript] AFK system by Stuun
#10

Quote:
Originally Posted by Swyft™
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include <zcmd>
 
new IsPlayerAfk[MAX_PLAYERS];
 
CMD:afk(playerid, params[])
{
    if(IsPlayerAfk[playerid] == 1) return SendClientMessage(playerid, -1, "{FF0000}You are already AFK");
    IsPlayerAfk[playerid] = 1;
    GameTextForPlayer(playerid, "~g~AFK",2000,3);
    SetPlayerHealth(playerid, 9999999999999999999.0);
    TogglePlayerControllable(playerid,0);
    return 1;
}
CMD:back(playerid,params[])
{
    if(IsPlayerAfk[playerid] == 0) return SendClientMessage(playerid, -1, "{FF0000}You are not AFK");
    if(IsPlayerAfk[playerid] == 1)
    {
        IsPlayerAfk[playerid] = 0;
        SendClientMessage(playerid, -1,"{00CC00}You are back from AFK");
        SetPlayerHealth(playerid, 100);
        TogglePlayerControllable(playerid,1);
    }
    return 1;
}
How is this even useful? Sure, I type AFK and it makes me not move. This means some enemy can come to me and shoot me and get a free kill. Why not do something different? Such as, make him teleport to like a room and then when he types /back it will take him back to his position. I'm just saying, it's not really useful. Put more use to it.
I kinda agree, it will be better if it teleports the player to a specific place or makes him invisible at least
Reply


Messages In This Thread
AFK system by Stuun - by Glossy42O - 01.11.2014, 06:04
Re: AFK system by Stuun - by Swyft™ - 01.11.2014, 07:32
Re: AFK system by Stuun - by Glossy42O - 01.11.2014, 07:35
Re: AFK system by Stuun - by Swyft™ - 01.11.2014, 07:54
Re: AFK system by Stuun - by Glossy42O - 01.11.2014, 07:57
Re: AFK system by Stuun - by jamjamnewbie - 01.11.2014, 07:57
Re: AFK system by Stuun - by Glossy42O - 01.11.2014, 07:59
Re: AFK system by Stuun - by Ahammad - 01.11.2014, 14:06
Re: AFK system by Stuun - by Glossy42O - 01.11.2014, 14:32
Re: AFK system by Stuun - by Arastair - 14.11.2014, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)