Jha nem rossz kis program kár hogy a készítõje ilyenre pazarolja az idejét, amúgy ez ellen a kick lóf***t se ér automatikus újracsatlakozással rendelkezik.
Hát, serial alapján lehet nemfog menni, most járok a 4000. serialnál
#include a_samp#define GetPlayerFPS(%0) GetPVarInt(%0, \"pFPS\")public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"pDrunkLevelLast\", 0); SetPVarInt(playerid, \"pFPS\", 0); SetTimerEx(\"BotCheck\", 5000, 0, \"i\", playerid);return 1;}forward BotCheck(playerid);public BotCheck(playerid) { if(GetPlayerFPS(playerid) == 0) { BanEx(playerid, \"Bot kirugva!\"); return 1; } return 1;}public OnPlayerUpdate(playerid) { new drunknew; drunknew = GetPlayerDrunkLevel(playerid); if (drunknew < 100) { SetPlayerDrunkLevel(playerid, 2000); }else{ if(GetPVarInt(playerid, \"pDrunkLevelLast\") != drunknew) { new wfps = GetPVarInt(playerid, \"pDrunkLevelLast\") - drunknew; if ((wfps > 0) && (wfps < 200)) SetPVarInt(playerid, \"pFPS\", wfps); SetPVarInt(playerid, \"pDrunkLevelLast\", drunknew); } }return 1;}
#include <a_samp>new Count[MAX_PLAYERS];public OnPlayerDeath(playerid, killerid, reason){if( killerid == playerid ) Count[ killerid ] ++;if( Count[ killerid ] == 3 ) Ban( killerid );return 1;}public OnPlayerConnect(playerid) Count[ playerid ] = 0;
#include <a_samp>forward BotTimer();new Count[MAX_PLAYERS];public OnPlayerDeath(playerid, killerid, reason){if( killerid == playerid ) Count[ killerid ] ++;if( Count[ killerid ] == 10 ) Ban( killerid );return 1;}public OnPlayerConnect(playerid) Count[ playerid ] = 0;public OnGameModeInit() SetTimer( \"BotTimer\", 5000, true );public BotTimer(){for( new i; i < MAX_PLAYERS; i++ ) if( IsPlayerConnected( i ) ) Count[ i ] = 0;return 1;}
Laciék megoldását átalakítottam kicsit, ha ez jobban tetszene.. annyi változás hogy Banolja a botokat kick helyett..#include a_samp#define GetPlayerFPS(%0) GetPVarInt(%0, \"pFPS\")public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"pDrunkLevelLast\", 0); SetPVarInt(playerid, \"pFPS\", 0); SetTimerEx(\"BotCheck\", 5000, 0, \"i\", playerid);return 1;}forward BotCheck(playerid);public BotCheck(playerid) { if(GetPlayerFPS(playerid) == 0) { BanEx(playerid, \"Bot kirugva!\"); return 1; } return 1;}public OnPlayerUpdate(playerid) { new drunknew; drunknew = GetPlayerDrunkLevel(playerid); if (drunknew < 100) { SetPlayerDrunkLevel(playerid, 2000); }else{ if(GetPVarInt(playerid, \"pDrunkLevelLast\") != drunknew) { new wfps = GetPVarInt(playerid, \"pDrunkLevelLast\") - drunknew; if ((wfps > 0) && (wfps < 200)) SetPVarInt(playerid, \"pFPS\", wfps); SetPVarInt(playerid, \"pDrunkLevelLast\", drunknew); } }return 1;} Nézegettem, de sokszor engem is botnak néz mert 0 FPS-t ad vissza. Naplózva
De Csabesz ez jó, mert a raksamp magát is megöli folyamatosan.