Quote:
Originally Posted by iMFear
Sistema simples de bomba.
PHP код:
new bool:HaveBomb;
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;
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
}
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!
|
Irei utilizar o seu codigo, quero saber qual nick vocк usa como crйdito, pois irei colocalo em meu servidor.