AFK system by Stuun -
Glossy42O - 01.11.2014
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.
Re: AFK system by Stuun -
Swyft™ - 01.11.2014
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.
Re: AFK system by Stuun -
Glossy42O - 01.11.2014
No. I used setplayerhealth if you did not see.
I did 99999999999999999999
Re: AFK system by Stuun -
Swyft™ - 01.11.2014
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.
Re: AFK system by Stuun -
Glossy42O - 01.11.2014
I will update it later.
Busy.
Re: AFK system by Stuun -
jamjamnewbie - 01.11.2014
Everyone except for those REALLY BEGINNER can do this, why make something like this as a filterscript?
Re: AFK system by Stuun -
Glossy42O - 01.11.2014
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.
Re: AFK system by Stuun -
Ahammad - 01.11.2014
Wow super
Re: AFK system by Stuun -
Glossy42O - 01.11.2014
Thanks.
Going to be updates as soon as i will be free.
Re: AFK system by Stuun -
Arastair - 14.11.2014
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