/bomb = Activate Car Bomb - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /bomb = Activate Car Bomb (
/showthread.php?tid=116472)
/bomb = Activate Car Bomb -
DeltaAirlines12 - 29.12.2009
How would I make a command that if your in a car, you can type /installbomb and in 10 seconds the call will explode?
(If not in a car, says your not in a car, and YOU NEED TO BE THE DRIVE TO DO IT.)
And to prevent anti-spam, you can only use the command once every 5 minutes.
Also, when you type /installbomb and it lets you install it, it sends conformation message? Thanks in advance.
Re: /bomb = Activate Car Bomb -
Correlli - 29.12.2009
Use IsPlayerInAnyVehicle function to check if player is in any vehicle, SetTimer/SetTimerEx for time delay (10 seconds) and CreateExplosion to create explosion.
About command anti-spam, you can use a variable for this - search around, there are few examples about this.
Re: /bomb = Activate Car Bomb -
StreetGT - 29.12.2009
best bomb system ever
http://forum.sa-mp.com/index.php?topic=85405.0
Re: /bomb = Activate Car Bomb -
Plovix - 28.10.2012
Use SetTimerEx,CreateExplosion,IsPlayerInAnyVehicle,Se ndClientMessage/GameTextForPlayer,OnPlayerCommandText