01.01.2018, 11:01
You don't need to save TogglePlayerControllable on not You could just directly call it.
PHP код:
CMD:back(playerid, params[])
{
new name[MAX_PLAYER_NAME], string[128];
if(TogglePlayerControllable(playerid, TRUE))
{
SCM(playerid, -1, "g");
}
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s back from Afk.", name);
SCMTA(0xFFFF00, string);
TogglePlayerControllable(playerid, TRUE);
return 1;
}