18.04.2009, 22:11
What if you add that code on OnPlayerUpdate? It will be more accurate
Also nice idea!
pawn Код:
if(IsPlayerInAnyVehicle(i))
{
new currentveh;
currentveh = GetPlayerVehicleID(i);
GetVehicleZAngle(currentveh, angle);
//new str[32];
//format(str,32,"%f",angle);
//SendClientMessage(i,COLOR_RED,str);
if(floatround(angle) == floatround(LastA[i])+180 || floatround(angle) == floatround(LastA[i])-180)
{
Kick(i);
break;
}
LastA[i] = angle;
}