call CHEAT_TYPE_CARWARP instead of RAPID_FIRE

This commit is contained in:
Lorenc Pekaj 2019-04-19 18:10:27 +10:00 committed by GitHub
parent 7212ccdac6
commit 77e114fa39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ hook OnPlayerStateChange( playerid, newstate, oldstate )
if ( p_ac_CarWarpTime[ playerid ] > server_time ) if ( p_ac_CarWarpTime[ playerid ] > server_time )
{ {
CallLocalFunction( "OnPlayerCheatDetected", "ddd", playerid, CHEAT_TYPE_RAPIDFIRE, 0 ); CallLocalFunction( "OnPlayerCheatDetected", "ddd", playerid, CHEAT_TYPE_CARWARP, 0 );
return Y_HOOKS_BREAK_RETURN_1; return Y_HOOKS_BREAK_RETURN_1;
} }