12.07.2012, 23:34
(
Last edited by Lorenc_; 13/07/2012 at 01:17 AM.
)
PLAYERBUGGER.CS PATCH
pawn Code:
/*
What's this CLEO?
This cleo demolishes your closest players that are in vehicles.
It sends them so far away, that your screen is completely ruined.
What's the fix meant to do?
Most players tend to relog inorder to fix this. Players then would
report this a bug in your bug report board within your server forums.
This stops that spam and also adds a SA-MP like client message to
indicate that it's just a SA-MP issue.
As people just relog to fix the issue, this just slays them two times
and the issue is automatically resolved once you're spawned. No more
hassle with relogging just because of a cruel person!
Minor Information:
X Y Z
999999.875000 | 10000000.000000 | 1410065408.000000
(999999.9) (1e07) (1e10)
This is the debug information I've got.
*/
new
Float: p_PlayerBuggerX[ MAX_PLAYERS ],
Float: p_PlayerBuggerY[ MAX_PLAYERS ],
Float: p_PlayerBuggerZ[ MAX_PLAYERS ]
;
public OnPlayerUpdate( playerid )
{
static
Float: X, Float: Y, Float: Z
;
GetPlayerPos( playerid, X, Y, Z );
if( X >= 99999.0 || Y >= 99999.0 || Z >= 99999.0 || X <= -99999.0 || Y <= -99999.0 || Z <= -99999.0 ) {
SendClientMessage( playerid, 0xa9c4e4ff, "Warning: Excessive X, Y, Z has been breached thus last location set." );
SetPlayerPos( playerid, p_PlayerBuggerX[ playerid ], p_PlayerBuggerY[ playerid ], p_PlayerBuggerZ[ playerid ] );
}
else
{
p_PlayerBuggerX[ playerid ] = X;
p_PlayerBuggerY[ playerid ] = Y;
p_PlayerBuggerZ[ playerid ] = Z;
}
return 1;
}