01.01.2011, 14:44
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?
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; }