#include <a_samp>#include <zcmd>#include <colors>CMD:afk(playerid,params[]){if( GetPVarInt( playerid, \"AFK\" ) == 1){TogglePlayerControllable(playerid,0);SendClientMessage(playerid,COLOR_RED,\"[AFK]AFK mód bekapcsolva\");SetPlayerVirtualWorld(playerid,1);SetPVarInt(playerid,\"AFK\",0);}else{SendClientMessage(playerid,COLOR_RED,\"[AFK]Te már AFK vagy\");}return 1;}CMD:afkki(playerid,params[]){if( GetPVarInt( playerid, \"AFK\" ) == 0){TogglePlayerControllable(playerid,1);SendClientMessage(playerid,COLOR_RED,\"[AFK]AFK mód kikapcsolva\");SetPlayerVirtualWorld(playerid,0);SetPVarInt(playerid,\"AFK\",1);}else{SendClientMessage(playerid,COLOR_RED,\"[AFK]Te nem vagy AFK\");}return 1;}public OnPlayerConnect(playerid){SetPVarInt(playerid,\"AFK\",1);return 1;}[code]
#include a_samp#include zcmd#include colorsCMD:afk(playerid,params[]){if(GetPVarInt(playerid,\"AFK\") == 0){TogglePlayerControllable(playerid,0);SendClientMessage(playerid,COLOR_RED,\"AFK bekapcsolva\");SetPlayerVirtualWorld(playerid,1);SetPVarInt(playerid,\"AFK\",1);}else if(GetPVarInt(playerid,\"AFK\") == 1){TogglePlayerControllable(playerid,1);SendClientMessage(playerid,COLOR_RED,\"AFK kikapcsolva\");SetPlayerVirtualWorld(playerid,0);SetPVarInt(playerid,\"AFK\",0);}return 1;}public OnPlayerDisconnect(playerid, reason){SetPVarInt(playerid,\"AFK\",0);return 1;}
#include <a_samp>#include <zcmd>CMD:afk(playerid) {if(GetPVarInt(playerid,\"AFK\")) {TogglePlayerControllable(playerid, false);SendClientMessage(playerid,0xE60000FF,\"AFK bekapcsolva\");SetPlayerVirtualWorld(playerid,1);SetPVarInt(playerid,\"AFK\",1);}else{TogglePlayerControllable(playerid, true);SendClientMessage(playerid,0xE60000FF,\"AFK kikapcsolva\");SetPlayerVirtualWorld(playerid, 0);SetPVarInt(playerid,\"AFK\", 0);}return 1;}public OnPlayerDisconnect(playerid, reason) {DeletePVar(playerid, \"AFK\");return 1;}