Truck Server
#10

Make a variable:
pawn Код:
new pWarned[MAX_PLAYERS];

Alter the if statement from:
pawn Код:
if(IsATLCar(vehicleid))
to
pawn Код:
if(IsATLCar(vehicleid) && pWarned[playerid] == 0)
Make it so that when "You have 5 seconds" prints, it is set to 1.
pawn Код:
pWarned[playerid] = 1;
Set pWarned to 0 before the return in the OUTTRUCK function.
Reply


Messages In This Thread
Truck Server - by Ugaustin - 28.03.2015, 19:17
Re: Truck Server - by AndySedeyn - 28.03.2015, 19:31
Re: Truck Server - by Ugaustin - 28.03.2015, 20:07
Re: Truck Server - by Ugaustin - 28.03.2015, 22:04
Re: Truck Server - by Alex Magaсa - 28.03.2015, 22:09
Re: Truck Server - by Ugaustin - 29.03.2015, 00:55
Re: Truck Server - by Ugaustin - 29.03.2015, 10:40
Re: Truck Server - by Ugaustin - 29.03.2015, 14:03
Re: Truck Server - by Ugaustin - 29.03.2015, 14:27
Re: Truck Server - by maramizo - 29.03.2015, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)