01.01.2018, 12:07
I Have These 2 Commands How I Can Make Pwano if
Player Already Afk And Typed AFK SCM You Are Already AFK
if
Player Not AFK and typed /back scm You are not AFK
Please Help me
This is CODE:
Player Already Afk And Typed AFK SCM You Are Already AFK
if
Player Not AFK and typed /back scm You are not AFK
Please Help me
This is CODE:
Код:
CMD:afk(playerid, params[]) { new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s Is Now Afk.", name); SCMTA(0xFFFF00, string); TogglePlayerControllable(playerid, 0); return 1; } //============================================================================== CMD:back(playerid, params[]) { new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), "%s back from Afk.", name); SCMTA(0xFFFF00, string); TogglePlayerControllable(playerid, true); return 1; } //==============================================================================