#define FILTERSCRIPT #include <a_samp> #include <zcmd> #define blue 0x0FFDD349 #define red 0xAA3333AA new pName[24]; new str[128]; new pName2[24]; new str2[128]; //^^ new IsAFK[MAX_PLAYERS]; public OnFilterScriptInit() { print(\"\\n-----------------------------------------------------------\"); print(\" Thosir Simpla AFK Rendszere Betöltve.\"); print(\"-----------------------------------------------------------\\n\"); return 1; } public OnFilterScriptExit() { print(\"\\n----------------------------------\"); print(\" Thosiro AFK Rendszere Terheletlen.\"); print(\"------------------------------------\\n\"); return 1; } public OnPlayerConnect(playerid) { IsAFK[playerid] = 0; } command(afk, playerid, params[]) { if(IsAFK[playerid] == 0) { TogglePlayerControllable(playerid,0); GetPlayerName(playerid, pName, 24); format(str, 128, \"%s AFK-ba van! (Nincs gépnél)\", pName); SendClientMessageToAll(blue, str); IsAFK[playerid] = 1; } else return SendClientMessage(playerid, blue, \"Te most AFK-zol!\"); return 1; } command(back, playerid, params[]) { if(IsAFK[playerid] == 1) { TogglePlayerControllable(playerid,1); GetPlayerName(playerid, pName2, 24); format(str2, 128, \"%s visszatért a géphez!\", pName2); SendClientMessageToAll(blue, str2); IsAFK[playerid] = 0; } else return SendClientMessage(playerid, blue, \"Már nem vagy AFK modban!\"); return 1; }command(afklist, playerid, params){ new pString[MAX_PLAYER_NAME], pName3[MAX_PLAYER_NAME]; for(new pID = 0; pID < MAX_PLAYERS; pID ++) { if(IsPlayerConnected(pID)) { if(IsAFK[pID] == 1) { SendClientMessage(playerid, 0xFFFFFFFF, \"A játékos jelenleg AFK:\"); GetPlayerName(playerid, pName3, sizeof(pName3)); format(pString, sizeof(pString), \"%s\", pName3); SendClientMessage(playerid, 0xFFFFFFFF, pString);} } } return 1; }
print(\"\\n-----------------------------------------------------------\"); //Prints a message on samp-server.exe saying the script has loaded successfully. print(\" Thosir Simpla AFK Rendszere Betöltve.\"); print(\"-----------------------------------------------------------\\n\");
Gratulálok ***dmeg te vagy a 100000 személy aki AFK \"scriptet\" töltött fel a fórumra, nyereménye: örök ban csá :DDD
command(afk, playerid, params[]) //The AFK Command { if(IsAFK[playerid] == 0) //Checks if the player is not already AFK. { TogglePlayerControllable(playerid,0); //Makes the player not controllable on the /afk command. GetPlayerName(playerid, pName, 24); //__________________Kiegészítés________________ SetPlayerVirtualWorld(playerid, 1); //___________________________________________ format(str, 128, \"%s AFK-ba van! (Nincs gépnél)\", pName); //The message it will send when a player types /afk. SendClientMessageToAll(blue, str); //Sends the message to all players IsAFK[playerid] = 1; //Tells the system the player is AFK. } else return SendClientMessage(playerid, blue, \"Te most AFK-zol!\");//Sends an error message if the player is already AFK. return 1; } command(back, playerid, params[]) //The Back Command { if(IsAFK[playerid] == 1) //Checks to see if the player is AFK. { TogglePlayerControllable(playerid,1); //Makes the player controllable on the /back command. GetPlayerName(playerid, pName2, 24); //__________________Kiegészítés________________ SetPlayerVirtualWorld(playerid, 0); //___________________________________________ format(str2, 128, \"%s visszatért a géphez!\", pName2); //The message it will send when the player types /back. SendClientMessageToAll(blue, str2); //Sends the message to all players. IsAFK[playerid] = 0; //Tells the system the player is not AFK. } else return SendClientMessage(playerid, blue, \"Már nem vagy AFK modban!\"); return 1; }
SetPlayerVirtualWorld(playerid, 1);
egyébként, ha így csinálod, akkor legalább nem ölik meg a playert, amíg afk-ban van....(akinek nem tûnne fel, világot vált xd)Igen látom köszi ennek majd talán 1 x hasznát veszem [/quote]
egyébként, ha így csinálod, akkor legalább nem ölik meg a playert, amíg afk-ban van....(akinek nem tûnne fel, világot vált xd)
Miért angol?
Miért angol? A lényeget leforditottam az a lényeg és THX [/quote][mod]Tehát te csak lefordítottad?[/mod]