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