Freeze on AFK?
#1

Made an AFK and back commands yet I need the player to be frozen if /AFK.

Whats the code you have to use to freeze the player during /AFK?

Код:
	if (strcmp("/Afk", cmdtext, true, 10) == 0)
		{
		new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    	GetPlayerName(playerid, pname, sizeof(pname));
    	format(string, sizeof(string), "%s is now Away From Keyboard", pname);
    	SendClientMessageToAll(COLOR_ORANGE, string);
		return 1;
		}
		if (strcmp("/Back", cmdtext, true, 10) == 0)
		{
		new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
		GetPlayerName(playerid, pname, sizeof(pname));
		format(string, sizeof(string), "%s is now Back On Keyboard", pname);
		SendClientMessageToAll(COLOR_BRIGHTRED, string);
		return 1;
		}
	return 0;
	}
Reply


Messages In This Thread
Freeze on AFK? - by Hudgens - 01.01.2011, 14:44
Re: Freeze on AFK? - by Grim_ - 01.01.2011, 14:45
Re: Freeze on AFK? - by Alex_Valde - 01.01.2011, 14:46
Re: Freeze on AFK? - by Hudgens - 01.01.2011, 14:49
Re: Freeze on AFK? - by Mean - 01.01.2011, 18:18

Forum Jump:


Users browsing this thread: 3 Guest(s)