[FilterScript] AFK system by Stuun
#1

Introduction

Hey everyone i made AFK system it's simpe really small tho but i was bored had nothing to do so whoever wants it take it

Pictures/Videos?





Download?

http://pastebin.com/dX0aJATS
__________________________________________________ ___________

Please don't comment bad comments if you didn't like it then don't even try to comment.
Reply
#2

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.
Reply
#3

No. I used setplayerhealth if you did not see.

I did 99999999999999999999
Reply
#4

Quote:
Originally Posted by Stuun
Посмотреть сообщение
No. I used setplayerhealth if you did not see.

I did 99999999999999999999
Okay, but what if the player didn't have 100 HP before he went AFK? And he had like 32 HP. The system can EASILY get abused by just doing /afk and /back. Because it gives you free HP. You're starting an LSCNR server, and this is a simple command that is going to be abused BIG TIME.
Reply
#5

I will update it later.

Busy.
Reply
#6

Everyone except for those REALLY BEGINNER can do this, why make something like this as a filterscript?
Reply
#7

Quote:
Originally Posted by jamjamnewbie
Посмотреть сообщение
Everyone except for those REALLY BEGINNER can do this, why make something like this as a filterscript?
Not everyone can make that.

This is just simple afk system for new beginners.

I've seen a lot newbies that can't make even kill command.
Reply
#8

Wow super
Reply
#9

Thanks.

Going to be updates as soon as i will be free.
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)