Quote:
Originally Posted by Dujma
Quote:
Originally Posted by Cr@zY!_J?E
Quote:
Originally Posted by Dujma
Does the tanges shows?
|
yeah, it says the angle like .. "293.9837" bla bla but i want points not angle, iv'e seen yours just like that 
|
In my script I use points as variables combined with timer. This are the final points in my script.
pawn Код:
PlayerCurrentPoints[playerid] += ((diference + speed) * bonus);
Those are the points that are shown on top of you screen (GameText) and when you are not drifting for like 3-4 seconds the points are placed in your total points. My system is quite different. It compares vehicle's old angle with new one that is updated with timer.
|
I'm quite new to this float stuff, but as i can see your not going to release such a good script (thats why i'm trying myself) but if i got the angle using this:
pawn Код:
public Drift(playerid)
{
if(Drifting[playerid] != 0)
{
new Float:x,Float:y,Float:z;
new vehicleid = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid,nx,nx,10);
tang = atan2(nx-x,ny-y);
GetVehicleZAngle(vehicleid,ann);
format(string,sizeof(string),"a: %.2f Ang %f", tang, ann);
GameTextForPlayer(playerid, string, 100, 6);
return 1;
}else return 0;
}
How would i convert the angle i get in "ann" to "points" or "PlayerCurrentPoints[playerid]" this is what i don't understand, like 8 points for 40 degrees (example)
thanks for helping me
crazyjoe