lundi 17 novembre 2014

[Ajuda] Sistema de Som dando Flood

Bom Galera,aqui estou eu novamente pedindo ajuda!!!



baixei um FS de colocar som em certo lugares,para meu GM bom...mas olha oq está acontecendo!!!!ele está flodando várias e várias vezes o IP e com isso acontece alguns travamentos e ele não para de se conectar a rádio...









Aqui segue o FS :




Quote:








#include <a_samp>



public OnFilterScriptInit()

{

print("\n--------------------------------------");

print("FS RadioPerto Criado Por Jonathan Feitosa CARREGADO!!!");

print("--------------------------------------\n");

SetTimer("Funciona", 1000, true);

return true;

}



public OnPlayerConnect(playerid)



{

SendClientMessage(playerid, -1, "Esse GameMode Usa um Sistema de JonathanFeitosa");

return true;

}



forward Funciona(playerid);

public Funciona(playerid)

{

new NaoFloda[MAX_PLAYERS];

new Float:CorX = 1256.2069, Float:CorY= -2029.1885, Float:CorZ = 59.5283, Float:Distancia = 35.0;

if(NaoFloda[playerid] == 0)

{

if(IsPlayerInRangeOfPoint(playerid, Distancia, CorX, CorY, CorZ))

{

NaoFloda[playerid] = 0;

PlayAudioStreamForPlayer(playerid, "http://ift.tt/1A8QtdF;, CorX, CorY, CorZ, Distancia, 1);

}

return true;

}

if(NaoFloda[playerid] == 0)

{

if(!IsPlayerInRangeOfPoint(playerid, Distancia, CorX, CorY, CorZ))

{

NaoFloda[playerid] = 0;

StopAudioStreamForPlayer(playerid);

}

return true;

}

return true;

}



Se puder ajudar obg!!!




Aucun commentaire:

Enregistrer un commentaire