20.05.2012, 00:22
pawn Код:
if(!strcmp(cmdtext,"/bomberman",true)) {
new dinid,Float:x,Float:y,Float:z;
if(IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,COLOR_RED,"[INFO]:Nгo pode usar bomba dentro de um carro *-* ");
return 1;
}
GetPlayerPos(playerid,x,y,z);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("CriarExplosao",8000,false,"fffdf",x,y,z,2,50.0);
dinid = CreateObject(1252,x,y,z-0.8,0,0,0);
SetTimerEx("DestruirObjeto",8000,false,"d",dinid);
SendClientMessage(playerid,COLOR_RED,"[INFO]: Bomba plantada...");
return 1;
}