09.10.2016, 15:24
Hi,
Is there left that bug in sa-mp that if you create new check point size is older check point?
Is there left that bug in sa-mp that if you create new check point size is older check point?
public OnPlayerEnterCheckpoint( playerid ) { if( IsPlayerInAnyVehicle( playerid ) ) { new Float: Vx, Float: Vy, Float: Vz ; GetVehiclePos( GetPlayerVehicleID( playerid ), Vx, Vy, Vz ); if( GetDistance( Vx, Vy, Vz, TampanDanBerani[playerid][0], TampanDanBerani[playerid][1], TampanDanBerani[playerid][2] ) > 20 ) return Kick( playerid ); } else { if( !IsPlayerInRangeOfPoint( playerid, 10.0, TampanDanBerani[playerid][0], TampanDanBerani[playerid][1], TampanDanBerani[playerid][2] ) ) return Kick( playerid ); } return 1; }
TampanDanBerani[playerid][0] // This is the X coordinate. TampanDanBerani[playerid][1] // This is the Y coordinate. TampanDanBerani[playerid][2] // This is the Z coordinate.