Anti bomb spam
#2

You'll have to use some of your knowledge .. the main idea is to make a variable
new bool:PlayerCanShootMissile[MAX_PLAYERS]; // you put this in top of script
PlayerCanShootMissile[playerid] = true; // On player connect

You'll use this public funtion : OnPlayerKeyStateChange ( In case player pressed FIRE_KEY && Player is in a hunter or tank or hydra && PlayerCanShootMissile[playerid] == true) you do : PlayerCanShootMissile[playerid] = false; SetTimerEx("ResetMissileVariable" ..... );
Else ( you eject player from vehicle + you send him a client message ( Do not abuse .. )


forward ResetMissileVariable(playerid);
public ResetMissileVariable(playerid)
{
PlayerCanShootMissile[playerid] = true;
}

I hope you see my points ... I hope this helped you

// To eject player from vehicle use this : RemovePlayerFromVehicle(playerid);
Reply


Messages In This Thread
Anti bomb spam - by Radess - 01.03.2014, 14:00
Re: Anti bomb spam - by Golimad - 01.03.2014, 14:33
Re: Anti bomb spam - by cielkute - 02.03.2014, 04:43
Re: Anti bomb spam - by FilesMAker - 02.03.2014, 20:42
Re: Anti bomb spam - by Golimad - 03.03.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)