Quote:
Originally Posted by Kaliber
This bug is a sync bug.
You can fix it with a little hook.
Include this for example with fix.inc:
PHP код:
/* Sa-Mp Include Fix
*
* © by Kaliber, 2015
*
*/
/******************************************************************************/
#if !defined _samp_included
#include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
#endinput
#endif
#define _samp_fix
/******************************************************************************/
native __SpawnPlayer(playerid) = SpawnPlayer;
/******************************************************************************/
stock _SpawnPlayer(playerid) {
if(IsPlayerInAnyVehicle(playerid)) return SetPlayerPos(playerid,3000.0,3000.0,0.0),SetTimerEx(!"@fix",300,0,!"i",playerid);
return __SpawnPlayer(playerid);
}
/******************************************************************************/
#if defined _ALS_SpawnPlayer
#undef SpawnPlayer
#else
#define _ALS_SpawnPlayer
#endif
#define SpawnPlayer _SpawnPlayer
/******************************************************************************/
@fix(i);@fix(i) return __SpawnPlayer(i);
/******************************************************************************/
|
if I put that but still gives me the bug
Код:
#include <a_samp> // Most samp functions (e.g. GetPlayerHealth and etc)
#include <foreach> // Used to loop through all connected players
#include <zcmd> // Used for commands.
#include <dini> // Used to store, write and get data to/from .ini files (in scriptfiles)
#include <geolocation> // Shows player country based on IP
#include fix.inc