CMD:afk(playerid, params[]){TogglePlayerControllable(playerid,0);new playerneve[24], string[64];GetPlayerName(playerid, playerneve, 24);format(string, 64, \"%s {FF0000}Nincs a gépnél\", playerneve);SendClientMessageToAll(0xFF7318FF, string);SendClientMessage(playerid, 0xAA3333AA, \"{FF6347}AFK-ba léptél!\");SendClientMessage(playerid, 0x000000AA, \"{FF6347}Vissza téréshez {FF0000}/afkoff!\");SetPlayerColor(playerid, 0x000000AA);SetPlayerVirtualWorld(playerid, 3);return 1;}CMD:afkoff(playerid, params[]){TogglePlayerControllable(playerid,1);new playerneve[24], string[64];GetPlayerName(playerid, playerneve, 24);format(string, 64, \"%s {FF0000}Újra a gépnél van!\", playerneve);SendClientMessageToAll(0xFF7318FF, string);SendClientMessage(playerid, 0xAA3333AA, \"{FF6347}Kiléptél az AFK-ból!\");SetPlayerColor(playerid, 0xFFFFFFAA);SetPlayerVirtualWorld(playerid, 0);return 1;}
CMD:afk(playerid, params[]){ TogglePlayerControllable(playerid,0); new playerneve[24], string[64]; GetPlayerName(playerid, playerneve, 24); format(string, 64, \"%s {FF0000}Nincs a gépnél\", playerneve); SendClientMessageToAll(0xFF7318FF, string); SendClientMessage(playerid, 0xAA3333AA, \"{FF6347}AFK-ba léptél!\"); SendClientMessage(playerid, 0x000000AA, \"{FF6347}Vissza téréshez {FF0000}/afkoff!\"); SetPlayerVirtualWorld(playerid, 3); return 1;}CMD:afkoff(playerid, params[]){ TogglePlayerControllable(playerid,1); new playerneve[24], string[64]; GetPlayerName(playerid, playerneve, 24); format(string, 64, \"%s {FF0000}Újra a gépnél van!\", playerneve); SendClientMessageToAll(0xFF7318FF, string); SendClientMessage(playerid, 0xAA3333AA, \"{FF6347}Kiléptél az AFK-ból!\"); SetPlayerVirtualWorld(playerid, 0); return 1;}