04.10.2012, 13:32
eae galera vim aqui pedir ajuda de vocк de uma coisa que eu tentei muito mais nгo obtive sucesso...
o erro que da й esse.
por favor me ajudem...
Код:
/* |----------------------------------------------------| |___________________ Anti-Speed Hack ________________| | | | Creditos: Paulo_TerroR | | Transformado em FS por: Caio_Freeze | |____________________________________________________| */ /*Sistema de avisos criado por alguem.*/ #define FILTERSCRIPT #include <a_samp> //============Define=========// #define COR_VERDE 0x00FF00AA // #define COR_ERRO 0xFF7777AA// //===========================// //========new=====// new string[128]; // new aviso[MAX_PLAYERS]; new liberado[MAX_PLAYERS]; new Dedos[MAX_PLAYERS]; //================// //===forward====// forward Hack(playerid); // forward Liberar(playerid); forward Kill(); //==============// public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Carregando Anti-Speed Hack... "); print("--------------------------------------\n"); SetTimer("Kill", 500, true); return 1; } public OnFilterScriptExit() { print("\n--------------------------------------"); print(" Desligando Anti-Speed Hack... "); print("--------------------------------------\n"); return 1; } public OnPlayerConnect(playerid) { aviso[playerid] = 0; liberado[playerid] = 1; Dedos[playerid] = SetTimerEx("Hack", 200, true, "d", playerid); } public Kill() { for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) { KillTimer(Dedos[i]); } } } public Hack(playerid) { new keys, updown, leftright; GetPlayerKeys(playerid, keys, updown, leftright); new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new Float:Pos[4]; Pos[3] = GetPlayerDistanceFromPoint(playerid, Pos[0], Pos[1], Pos[2]); GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); if((keys & KEY_ACTION || keys & KEY_FIRE) && (floatround(floatmul(Pos[3], 10.0)) > 200) && (IsPlayerInAnyVehicle(playerid))) { if(liberado[playerid] == 1) { if(aviso[playerid] >= 3) { format(string, 128, "SERVER:%s(%d) foi banido pelo Speed Hacker | Motivo: Anti-Speed-Hacker", Nome, playerid); SendClientMessageToAll(COR_ERRO, string); Ban(playerid); } else { format(string, 128, "SERVER: %s(%d) й suspeita de Speed Hacker", Nome, playerid); SendClientMessageToAll(COR_ERRO, string); liberado[playerid] = 0; aviso[playerid]++; SetTimerEx("Liberar", 6000, false, "d", playerid); } } } } public Liberar(playerid) return liberado[playerid] = 0;
Код:
C:\Users\NETO\Documents\GTA SERVE\GTA SERVE\filterscripts\speed.pwn(72) : error 017: undefined symbol "GetPlayerDistanceFromPoint"