06.09.2012, 22:16
Ok so Heres the code
OnPlayerConnect
Timer
The problem is the textdraws only get hidden for first player to join (Id 0) and im not sure why.Any help?
OnPlayerConnect
Код:
TextDrawShowForPlayer(playerid, BGBLACK); TextDrawShowForPlayer(playerid, TrinBG); TextDrawShowForPlayer(playerid, FreeroamBG); TextDrawShowForPlayer(playerid, BlueLineBG); TextDrawShowForPlayer(playerid, YellowLineBG); TextDrawShowForPlayer(playerid, VersionBG); LastVehicle[playerid]=-1; introtimer = SetTimer("TDhide", 5000, true);
Код:
forward TDhide(playerid); public TDhide(playerid) { TextDrawHideForPlayer(playerid, BGBLACK); TextDrawHideForPlayer(playerid, TrinBG); TextDrawHideForPlayer(playerid, FreeroamBG); TextDrawHideForPlayer(playerid, BlueLineBG); TextDrawHideForPlayer(playerid, YellowLineBG); TextDrawHideForPlayer(playerid, VersionBG); return 1; }