call CHEAT_TYPE_CARWARP instead of RAPID_FIRE

This commit is contained in:
Lorenc Pekaj 2019-04-19 18:18:09 +10:00 committed by GitHub
parent 8c59a62a9f
commit 635e77c341
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 )
{
CallLocalFunction( "OnPlayerCheatDetected", "ddd", playerid, CHEAT_TYPE_RAPIDFIRE, 0 );
CallLocalFunction( "OnPlayerCheatDetected", "ddd", playerid, CHEAT_TYPE_CARWARP, 0 );
return Y_HOOKS_BREAK_RETURN_1;
}