04.05.2015, 21:59
https://github.com/kurta999/YSF/commits/YSF_
Just a simple function which will broadcast death RPC - mean same thing will be broadcasted when you die.
Tested, works.
@kvann:
I will try to fix it, something do not good with SAMP GDK. Maybe downgrade it to same version which streamer use maybe help.
Plus, another thing: I noticed on my server if somebody flood my server with remote rcon flooder, then OnServerMessage will crash at linux... I don't know why. Currently the solution for this is release two linux version, one with OnServerMessage, one without it. If you encounter bugs with OnServerMessage, you would just replace to second version.
BTW, If you want to detect remote rcon login, use OnRemoteRCONPacket
E: R13 pre 2, test this. Should work without error messages, I get SAMP GDK from streamer plugin and recompiled with it.
https://github.com/kurta999/YSF/releases/tag/R13
Just a simple function which will broadcast death RPC - mean same thing will be broadcasted when you die.
Quote:
There is a probleme with textdraw, TextDrawIsVisible not work on R13 version.
|
@kvann:
I will try to fix it, something do not good with SAMP GDK. Maybe downgrade it to same version which streamer use maybe help.
Plus, another thing: I noticed on my server if somebody flood my server with remote rcon flooder, then OnServerMessage will crash at linux... I don't know why. Currently the solution for this is release two linux version, one with OnServerMessage, one without it. If you encounter bugs with OnServerMessage, you would just replace to second version.
BTW, If you want to detect remote rcon login, use OnRemoteRCONPacket

pawn Code:
public OnRemoteRCONPacket(const ipaddr[], port, const password[], success, const command[])
{
printf("remote console - ip: %s, port: %d, pass: %s, success: %d, command: %s", ipaddr, port, password, success, command);
if(!success)
{
SendRconCommandf("banip %s", ipaddr);
printf("remote rcon ban %s", ipaddr);
return 0;
}
return 1;
}
https://github.com/kurta999/YSF/releases/tag/R13