Fishing : Make Player Wait
#10

Can you make it like this:

On top of your script: new FishCooldown[MAX_PLAYERS];

Код:
if(Fished[playerid] >= 5)
	{
                print("Works");
		Fished[playerid] = 0;
		FishTime[playerid] = 5;
		FishCooldown[playerid] = SetTimerEx("FishingTime", 1000, true, "i", playerid);
	}
Then change the forward to this:

Код:
forward FishingTime(playerid);
public FishingTime(playerid)
{
    if(FishTime[playerid] > 0) 
    { 
          FishTime[playerid] --;
          if(FishTime[playerid] == 0) { KillTimer(FishCooldown[playerid]); } 
    }
    return 1;
}
Tell me if it prints the "Work" text on the samp-server.exe when Fished[playerid] is 5 or above.
Reply


Messages In This Thread
Fishing : Make Player Wait - by Mikeydoo - 07.01.2016, 21:46
Re: Fishing : Make Player Wait - by Lucky13 - 07.01.2016, 21:50
Re: Fishing : Make Player Wait - by Mikeydoo - 07.01.2016, 21:52
Re: Fishing : Make Player Wait - by Lucky13 - 07.01.2016, 21:55
Re: Fishing : Make Player Wait - by Mikeydoo - 07.01.2016, 22:02
Re: Fishing : Make Player Wait - by Lucky13 - 07.01.2016, 22:04
Re: Fishing : Make Player Wait - by Mikeydoo - 07.01.2016, 22:09
Re: Fishing : Make Player Wait - by Lucky13 - 07.01.2016, 22:13
Re: Fishing : Make Player Wait - by Mikeydoo - 07.01.2016, 22:19
Re: Fishing : Make Player Wait - by Lucky13 - 07.01.2016, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)