01.11.2011, 14:04
pawn Код:
new MeuKM[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
static Float:x, Float:y, Float:z;
if(IsPlayerInRangeOfPoint(playerid, 100.0, x,y,z))
else return GetPlayerPos(playerid, x,y,z);
GetPlayerPos(playerid, x,y,z);
MeuKM[playerid]++;
}
return 1;
}