Quote:
Originally Posted by xSeveNx
PHP код:
if (IsPlayerInCheckpoint(playerid)) return DestroyProgressBar(nombrevar[playerid]);
{
//
}
Creo que asн.
PHP код:
if (IsPlayerInCheckpoint(playerid)) return SetProgressBarValue(nombre, 0)
{
//
}
O asi
|
gracias por contestar bro
No se si el problema sea de aca
forward CountDown();
public CountDown()
{
foreach(Player, playerid)
{
if(IsPlayerInDynamicCP(playerid, CP[SNAKE]) && UnderAttack[SNAKE] == 1 && IsPlayerCapturing[playerid][SNAKE] == 1)
{
new check = (CProgress[playerid][SNAKE] *100)/25;
CProgress[playerid][SNAKE]++;
CountVar[playerid][SNAKE]--;
new str1[124];
TextDrawShowForPlayer(playerid, CountText[playerid]);
format(str1, sizeof(str1),"~r~%d ~y~Left To Capture.", CountVar[playerid][SNAKE]);
TextDrawSetString(CountText[playerid], str1);
SetProgressBarValue(captureprogress[playerid],0);
switch(check)
{
case 0..20: SetProgressBarColor(captureprogress[playerid],0x26BAF4FF); //blue
case 21..40: SetProgressBarColor(captureprogress[playerid],0x3FE899FF); //green
case 41..60: SetProgressBarColor(captureprogress[playerid],0x93ED48FF); //green-yellow
case 61..80: SetProgressBarColor(captureprogress[playerid],0xF2EF3EFF); //yellow
case 81..100: SetProgressBarColor(captureprogress[playerid],0xFF0000FF); //red
}
UpdateProgressBar(captureprogress[playerid],playerid);
ShowProgressBarForPlayer(playerid,captureprogress[playerid]);
}