mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
fixed meta result error in player prethink
This commit is contained in:
parent
0e279c5bc9
commit
30ec1eec60
@ -151,11 +151,11 @@ void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax ){
|
|||||||
|
|
||||||
void PlayerPreThink_Post( edict_t *pEntity ) {
|
void PlayerPreThink_Post( edict_t *pEntity ) {
|
||||||
if ( !isModuleActive() )
|
if ( !isModuleActive() )
|
||||||
return;
|
RETURN_META(MRES_IGNORED);
|
||||||
|
|
||||||
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
||||||
if ( !pPlayer->ingame )
|
if ( !pPlayer->ingame )
|
||||||
return;
|
RETURN_META(MRES_IGNORED);
|
||||||
|
|
||||||
if (pPlayer->clearStats && pPlayer->clearStats < gpGlobals->time){
|
if (pPlayer->clearStats && pPlayer->clearStats < gpGlobals->time){
|
||||||
if ( !ignoreBots(pEntity) ){
|
if ( !ignoreBots(pEntity) ){
|
||||||
|
Loading…
Reference in New Issue
Block a user