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); |
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. |
Ok thanks to radess who posts the question and thanks to you Golimad, you give me the principal idea to do that.
I have this idea before but yours is clear than mine. +rep for you man ! |