Help me Afk And Back CMDS
#1

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:
Код:
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;
}
//==============================================================================
Reply


Messages In This Thread
Help me Afk And Back CMDS - by Osamakurdi - 01.01.2018, 12:07
Re: Help me Afk And Back CMDS - by RogueDrifter - 01.01.2018, 12:13
Re: Help me Afk And Back CMDS - by Lokii - 01.01.2018, 12:16
Re: Help me Afk And Back CMDS - by RogueDrifter - 01.01.2018, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)