05.05.2009, 20:28
This is what i got...
When i enter a vehicle the TextDraw "Servertime" wouldn't go away ^^
Help pLs
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { //if(newstate == PLAYER_STATE_ONFOOT) IT's from my speedo //{ //TextDrawHideForPlayer(playerid, Speedo[playerid]); //} if(newstate == PLAYER_STATE_DRIVER) { TextDrawHideForPlayer(playerid, Servertime); } return 1; }
Код:
public ServerTime() { for(new i= 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { TextDrawDestroy(Servertime); } } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { new Hour, Minute, Second; gettime(Hour, Minute, Second); format(string,sizeof(string),"Clock:%d,%d,%d",Hour,Minute,Second); Servertime = TextDrawCreate(540.0,440.0,string); TextDrawColor(Servertime,COLOR_PURPLE); TextDrawFont(Servertime,3); TextDrawLetterSize(Servertime,0.5,1.0); TextDrawSetShadow(Servertime,0); TextDrawSetOutline(Servertime,1); TextDrawShowForAll(Servertime); } } }
Help pLs