02.03.2011, 16:27
hi,
this bug already bugs me for such a long time now and i just CANT get this solved
This is also the last bug preventing me to get my server finally online!
There is a checkpoint on the map.
As soon as a player enters it, i want that a textdraw appears for only this player that has entered the cp.
This textdraw shall count from 20 down to 0.Thats how it should be
But its totally buged
If there are more than 1 player on the server the textdraw doesnt appear at all or just for one single player if he enters the cp.
Another issue is that it is counting down faster as soon as there are 2 or more players in the cp at the same time.
Also i want the countdown to be killed for a player as soon as he leaves the cp.
So this is what i got, i tried so much and modified it about 20 times but its still not working
I hope someone can fix this for me
This is all i got for this countdown and im begging you to help me 
thanks in advance.
regards...
this bug already bugs me for such a long time now and i just CANT get this solved

This is also the last bug preventing me to get my server finally online!

There is a checkpoint on the map.
As soon as a player enters it, i want that a textdraw appears for only this player that has entered the cp.
This textdraw shall count from 20 down to 0.Thats how it should be

But its totally buged

If there are more than 1 player on the server the textdraw doesnt appear at all or just for one single player if he enters the cp.
Another issue is that it is counting down faster as soon as there are 2 or more players in the cp at the same time.
Also i want the countdown to be killed for a player as soon as he leaves the cp.
So this is what i got, i tried so much and modified it about 20 times but its still not working

I hope someone can fix this for me

pawn Код:
//at the top of the script
forward counterzone(playerid);
new countdownzone[MAX_PLAYERS] = 20;
new CDONZone[MAX_PLAYERS];
new Text:MiniCountdown;
//OnGameModeInit
MiniCountdown = TextDrawCreate(3.000000, 412.000000, "20");
TextDrawBackgroundColor(MiniCountdown, 255);
TextDrawFont(MiniCountdown, 3);
TextDrawLetterSize(MiniCountdown, 0.939999, 3.900000);
TextDrawColor(MiniCountdown, -1);
TextDrawSetOutline(MiniCountdown, 1);
TextDrawSetProportional(MiniCountdown, 1);
TextDrawUseBox(MiniCountdown, 0);
TextDrawBoxColor(MiniCountdown, 1684300900);
TextDrawTextSize(MiniCountdown, 41.000000, 0.000000);
//OnPlayerEnterCheckpoint
CDONZone[playerid] = SetTimerEx("counterzone",990,false,"i",playerid);
//the timer
public counterzone(playerid)
{
if(countdownzone[playerid] > 0)
{
TextDrawShowForPlayer(playerid,MiniCountdown);
new textformat[85];
format(textformat,sizeof textformat,"~g~%d",countdownzone[playerid]);
TextDrawSetString(MiniCountdown,textformat);
CDONZone[playerid] = SetTimerEx("counterzone",990,false,"i",playerid);
countdownzone[playerid] --;
}
return 1;
}
//OnPlayerLeaveCheckpoint
KillTimer(CDONZone[playerid]);
countdownzone[playerid] = 20;
TextDrawHideForPlayer(playerid,MiniCountdown);

thanks in advance.
regards...