18.09.2007, 09:05
Lets just get this clear:
1. You CANNOT unset it for a player when they disconnect unless you call OnPlayerDisconnect.
2. playervehiclebar[] is not set to 1 for each player by defualt unless you use OnPlayerConnect to set it for each player. Also, by testing it myself it doesn't show by defualt.
So your code does in fact have a few bugs and needs a fix in order for it to show automatically.
new playervehiclebar[MAX_PLAYERS] = 1;
^^ thats invalid cant do that.
1. You CANNOT unset it for a player when they disconnect unless you call OnPlayerDisconnect.
2. playervehiclebar[] is not set to 1 for each player by defualt unless you use OnPlayerConnect to set it for each player. Also, by testing it myself it doesn't show by defualt.
So your code does in fact have a few bugs and needs a fix in order for it to show automatically.
new playervehiclebar[MAX_PLAYERS] = 1;
^^ thats invalid cant do that.