[HELP] How to make AFK system???
#2

Here study this:
Код:
if (strcmp("/afk", cmdtext, true, 10) == 0)
         {
		GameTextForPlayer(playerid, "~g~You are now ~r~Away From Keyboard",5000,3);
		TogglePlayerControllable(playerid,0);
		SetPlayerHealth(playerid,1000000);
		new string[256], pname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, pname, sizeof(pname));
		format(string, sizeof(string), "You are now Away From keyboard %s(/afk)", pname);
		SendClientMessageToAll(COLOR_RED, string);
		return 1;
	}
	if (strcmp("/back", cmdtext, true, 10) == 0)
        {
		GameTextForPlayer(playerid, "~g~You are now ~r~back on keyboard",5000,3);
		TogglePlayerControllable(playerid,1);
		SetPlayerHealth(playerid,100);
		new string[256], pname[MAX_PLAYER_NAME];
		GetPlayerName(playerid, pname, sizeof(pname));
		format(string, sizeof(string), "%s You are now back on keyboard(/back)", pname);
		SendClientMessageToAll(COLOR_RED, string);
		return 1;
	}
Sorry i can't explain you how to make this,i can give you CMD only because i didn't made this.
(I understand it i can make CMD easy i just have to deal with some virus and i don't know how to explain it very well because i'm newbie scripter).

Good luck.
Reply


Messages In This Thread
[HELP] How to make AFK system??? - by Type-R - 06.05.2011, 19:02
Re: [HELP] How to make AFK system??? - by Kobatz - 06.05.2011, 19:39
Re: [HELP] How to make AFK system??? - by Type-R - 06.05.2011, 21:40
Respuesta: [HELP] How to make AFK system??? - by Alex_Obando - 06.05.2011, 23:28
Re: [HELP] How to make AFK system??? - by Type-R - 07.05.2011, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)