10.05.2018, 19:40
Helo! I make a speedometer and is work fine, but when i exit from car is don't hide .
What is wrong?
Код HTML:
public OnPlayerStateChange(playerid, newstate, oldstate) { // intra in masina if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) { killtimer[playerid] = SetTimerEx("speed", 100, true, "i", playerid); } // IESE DIN MASINA GATA SPEEDU if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) { KillTimer(killtimer[playerid]); } return 1; }