Script problem
#4

pawn Code:
OnPlayerDeath(playerid, bla bla bla){
if(FindTime[playerid] !=0)
{
        ShowPlayerMarkers(0);
    FindTime[playerid] = 0;
}
//...
I think this should work. After he dies it will remove all markers.

And in the timer which sets remaining time post this code:
pawn Code:
new bool:flag=false;
for(new i=0;i<MAX_PLAYERS;i++)
{
    if(!IsPlayerConnected(i))continue;
    if(FindTime[i] !=0){
    flag=true;
    break;
    }
   if(flag==false)ShowPlayerMarkers(0);
}
This should remove markers after time expires.
Reply


Messages In This Thread
Script problem - by Strech - 10.07.2012, 21:03
Re: Script problem - by Strech - 11.07.2012, 11:14
Re: Script problem - by Kirollos - 11.07.2012, 11:28
Re: Script problem - by Roko_foko - 11.07.2012, 12:03
Re: Script problem - by Strech - 11.07.2012, 12:12
Re: Script problem - by Roko_foko - 11.07.2012, 12:18
Re: Script problem - by Strech - 11.07.2012, 12:24
Re: Script problem - by Strech - 11.07.2012, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)