09.05.2011, 15:23
heey guys
I made a day TextDraw. Everything works fine but when a player logs out or in the textdraw bugs.
sa-mp-098.jpg
How can i fix this?
Thanks Admigo
I made a day TextDraw. Everything works fine but when a player logs out or in the textdraw bugs.
sa-mp-098.jpg
Код:
if(gametime == 0 && gameday == 1) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Monday"); TextDrawShowForAll(monday); TextDrawHideForAll(sunday); TextDrawHideForAll(tuesday); TextDrawHideForAll(wednesday); TextDrawHideForAll(thursday); TextDrawHideForAll(friday); TextDrawHideForAll(saturday); } if(gametime == 0 && gameday == 2) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Tuesday"); TextDrawShowForAll(tuesday); TextDrawHideForAll(monday); TextDrawHideForAll(sunday); TextDrawHideForAll(wednesday); TextDrawHideForAll(thursday); TextDrawHideForAll(friday); TextDrawHideForAll(saturday); } if(gametime == 0 && gameday == 3) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Wednesday"); TextDrawShowForAll(wednesday); TextDrawHideForAll(tuesday); TextDrawHideForAll(sunday); TextDrawHideForAll(monday); TextDrawHideForAll(thursday); TextDrawHideForAll(friday); TextDrawHideForAll(saturday); } if(gametime == 0 && gameday == 4) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Thursday"); TextDrawShowForAll(thursday); TextDrawHideForAll(monday); TextDrawHideForAll(sunday); TextDrawHideForAll(tuesday); TextDrawHideForAll(wednesday); TextDrawHideForAll(friday); TextDrawHideForAll(saturday); } if(gametime == 0 && gameday == 5) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Friday"); TextDrawShowForAll(friday); TextDrawHideForAll(thursday); TextDrawHideForAll(sunday); TextDrawHideForAll(tuesday); TextDrawHideForAll(wednesday); TextDrawHideForAll(monday); TextDrawHideForAll(saturday); } if(gametime == 0 && gameday == 6) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Saturday"); TextDrawShowForAll(saturday); TextDrawHideForAll(friday); TextDrawHideForAll(sunday); TextDrawHideForAll(tuesday); TextDrawHideForAll(wednesday); TextDrawHideForAll(thursday); TextDrawHideForAll(monday); } if(gametime == 0 && gameday == 7) { SendClientMessageToAll(COLOR_WHITE,"[GAME DAY] Sunday"); TextDrawShowForAll(sunday); TextDrawHideForAll(saturday); TextDrawHideForAll(tuesday); TextDrawHideForAll(wednesday); TextDrawHideForAll(thursday); TextDrawHideForAll(friday); TextDrawHideForAll(monday); }
Thanks Admigo