12.07.2011, 21:19
Hello, I have a problem because he wants to do and want to speed meter to show as in publicu OnPlayerUpdate, but do not want him to use it ...
public OnGameModeInit()
{
//...
SetTimer("SpeedometerUpdate", 200, true); //This is the timer to call the public "SpeedometerUpdate" every 200ms (1/5 s)
//...
return 1;
}
forward SpeedometerUpdate();
public SpeedometerUpdate()
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) //This loop loops through all player ID's.
{
if(IsPlayerConnected(playerid)) //Checks if the player is connected
{
//Start here doing your speedometer system.
}
}
}