01.08.2015, 20:03
(
Последний раз редактировалось iMFear; 04.08.2015 в 02:10.
)
Sistema simples de bomba.
OBS: Tб em inglкs pq era um pedido lб da board ENG que eu ajudei, ai eu acabei achando interessante para trazer pra ca pra vocкs tambйm!
PHP код:
new bool:HaveBomb;
new currentveh;
CMD:plantarbomba(playerid) {
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, YOURCOLOR, "You don't are in a vehicle.");
HaveBomb = true;
SendClientMessage(playerid, YOURCOLOR, "Bomb attached!");
return 1;
}
CMD:detonar(playerid) {
if(HaveBomb == false) return SendClientMessage(playerid, YOURCOLOR, " You don't have a bomb attached.");
new Float:vehx, Float:vehy, Float:vehz;
currentveh = GetPlayerVehicleID(playerid);
GetVehiclePos(currentveh, vehx, vehy, vehz);
CreateExplosion(vehx, vehy, vehz, 0, 12.0);
return 1
}
CMD:bombainfo(playerid) {
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, YOURCOLOR, "You don't are in a vehicle.");
if(HaveBomb == true) return SendClientMessage(playerid, YOURCOLOR, "Have a bomb attached in this vehicle! Rest in peace.");
if(HaveBomb == false) return SendClientMessage(playerid, YOURCOLOR, "Don't have a bomb attached in this vehicle! ");
return 1
}