15.02.2012, 21:26
Hello,in my robbery gametext timer i've this small check:
Top of gm.
In the rob timer:
IsRobbing = 1 means the player started robbing.
When a player finish robbery:
But here is the problem.It's onplayerdeath,i made if player was robbing and will be killed or he will die,the gametext timer will stop.But dont work,the timer keeps countding down until the robbery finish.
What's wrong?I wanna stop the gametext timer and stop robbery if the player die.
Top of gm.
pawn Код:
new IsRobbing[MAX_PLAYERS];
pawn Код:
IsRobbing[playerid] =1;
When a player finish robbery:
pawn Код:
IsRobbing[playerid] =0;
pawn Код:
if(IsRobbing[playerid] == 1)
{
new string2[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string2, sizeof(string2), "You died and your robbery failed! NOOB.");
SendClientMessage(playerid,red,string2);
GameTextForPlayer(playerid, "Robbery ~r~FAILED.", 3000, 5);
IsRobbing[playerid] =0;
pRobCount[playerid] = 0;
}