Server closed connection After Spawn Protection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server closed connection After Spawn Protection (
/showthread.php?tid=565631)
Server closed connection After Spawn Protection -
Fantje - 28.02.2015
Hey Guys,
I have a Spawnprotection filterscript but if I use it, the server close the connection after spawnprotection is over.\
PHP код:
//> [FS] Spawn Protection - By HotStyle <//
#include <a_samp>
#define PROTECTION 30 // Edit here the 'seconds' if you want
forward AntiSpawnkill(playerid);
public OnFilterScriptInit()
{
print("\n__________________________________________");
print(" Spawn Protection - loaded ");
print(" By: HotStyle ");
print("__________________________________________\n");
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 10000.0);
new str[128];
format(str, sizeof(str), "You can't be killed for %d second(s) - Spawn Protection", PROTECTION);
SendClientMessage(playerid, 0xFF0000AA, str);
SetPlayerChatBubble(playerid, "Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 5000);
SetTimerEx("AntiSpawnkill",PROTECTION*1000,0,"d",playerid);
return 1;
}
public AntiSpawnkill(playerid)
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(playerid, 0xFF0000AA, "Spawn Protection Over - Move if you're unprotected");
return 1;
}
Re: Server closed connection After Spawn Protection -
Abagail - 28.02.2015
You probably have an anti(health) hack script running falsely detecting the player as hacking the 100. What FS'es / GM are you running?
Re: Server closed connection After Spawn Protection -
Fantje - 28.02.2015
I am running my own, and yes I have anti health hack.
Re: Server closed connection After Spawn Protection -
JessThompson - 28.02.2015
Could you please post your anti health script here because that may be causing the issues and kicking you
Re: Server closed connection After Spawn Protection -
Fantje - 28.02.2015
It's fixed
Re: Server closed connection After Spawn Protection -
JessThompson - 28.02.2015
Okay nice to hear