Waiting time between shooting.
#4

pawn Код:
new CANNON_WAIT[MAX_PLAYERS];

// When going to shoot again you need to check

if (CANNON_WAIT[playerid] >= gettime())
    return SendClientMessage(playerid, -1, "Oh fuck, not so fast.");

// When shot set 5 seconds so when he is going to shot within 5s ^^^ prevent it.

CANNONT_WAIT[playerid] = (gettime() + 5);
Reply


Messages In This Thread
Waiting time between shooting. - by Frank Biohazard - 09.01.2014, 11:27
Re: Waiting time between shooting. - by Eth - 09.01.2014, 12:05
Re: Waiting time between shooting. - by MatriXgaMer - 09.01.2014, 12:13
Re: Waiting time between shooting. - by Cypress - 09.01.2014, 12:20
Re: Waiting time between shooting. - by Frank Biohazard - 09.01.2014, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)