Anti bomb spam
#3

Quote:
Originally Posted by Golimad
Посмотреть сообщение
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);
Not helped ;/ Look

Quote:

C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(290) : error 017: undefined symbol "AllignMaxPlayers"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(300) : error 017: undefined symbol "GlobalSystem"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(303) : error 017: undefined symbol "LoadPickups"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(305) : error 017: undefined symbol "PrepareHouseSystem"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(306) : error 017: undefined symbol "OutputVehicleData"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(3960) : warning 211: possibly unintended assignment
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(3960) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(3960) : error 036: empty statement
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(3960) : error 017: undefined symbol "Buylist"
C:\Documents and Settings\admin\Desktop\new\gamemodes\nw.pwn(3960) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.

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)