30.06.2014, 02:06
como deixa pra nao congelar quando algum player entra no servidor
Код:
/* FS Feito por CrazyHelp. Versгo 1.0 Feito 24/06/2014 Skype : dedao05 */ #include <a_samp> //include necessaria #define DIALOG_ChecarHack 3000 public OnPlayerSpawn(playerid) { SetCameraBehindPlayer(playerid); SetTimerEx("ChecarHack", 4 * 1000, 0, "i", playerid); GameTextForPlayer(playerid, "~w~Anti-S0B31T-Checando...", 3000, 3); TogglePlayerControllable(playerid, 0); return 1; } forward ChecarHack(playerid); public ChecarHack(playerid) { new Float:x, Float:y, Float:z; GetPlayerCameraFrontVector(playerid, x, y, z); #pragma unused x #pragma unused y if(z < -0.8) { TogglePlayerControllable(playerid, 1); new string[128]; new DNSME[MAX_PLAYER_NAME];GetPlayerName(playerid, DNSME, sizeof DNSME); format(string, sizeof string, "%s se conectou com S0B31T e foi kickado.", DNSME); SendClientMessageToAll(0xFF0000FF, string); new String[1000]; format(String, sizeof(String), "{FF0000}Vocк logou com S0B31T.\n{FF0000}# {FFFFFF} Anti-S0B31T {FF0000}Feito por CrazyHelp.\n{FF0000}Informaзoes."); ShowPlayerDialog(playerid, DIALOG_ChecarHack, DIALOG_STYLE_MSGBOX, "{FF0000}# {FFFFFF}NOME DO SERVE", String, "Ok", "Sair"); Kick(playerid); } else { TogglePlayerControllable(playerid, 1), SendClientMessage(playerid, -1, "Processado... Vocк estб limpo agora pode jogar."); } return 1; }