11.04.2011, 18:07
Hi samp scripters.
I've got a problem with my self-made altitudemeter.
If there are more players in the server, the meter will show the altitudes of all players.
Here is my code:
Can someone help me??
I've got a problem with my self-made altitudemeter.
If there are more players in the server, the meter will show the altitudes of all players.
Here is my code:
Код:
public RefreshAltitudeMeter(playerid) { new Float:x, Float:y, Float:z; if(IsPlayerInAnyVehicle(playerid)) { GetPlayerPos(playerid, x, y, z); format(AltitudeString, sizeof(AltitudeString), "Altitude: %.2f meters", z); TextDrawSetString(Altitudemeter, AltitudeString); TextDrawShowForPlayer(playerid, Altitudemeter); } else { TextDrawHideForPlayer(playerid, Altitudemeter); return 1; } return 1; }