06.06.2012, 03:53
ae galera o incendio nao ta aparecendo ;s alguem ajuda eu ?
pawn Код:
if(strcmp(cmd, "/incendiar", true) == 0 || strcmp(cmd, "/in", true) == 0)
{
if(IsABand(playerid))
{
if(IncendioAcontecendo == true) return SendClientMessage(playerid, 0xFFFF00AA, "Alguйm jб tocou fogo em algum lugar !");
new Float:PlayerX, Float:PlayerY, Float:PlayerZ;
GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
FogoX[0]=PlayerX+-1.9826; FogoY[0]=PlayerY+-1.5052; FogoZ[0]=PlayerZ-2;
FogoX[1]=PlayerX+-1.9816; FogoY[1]=PlayerY+-0.1017; FogoZ[1]=PlayerZ-2;
FogoX[2]=PlayerX+-3.2436; FogoY[2]=PlayerY+-1.5876; FogoZ[2]=PlayerZ-2;
FogoX[3]=PlayerX+-1.9826; FogoY[3]=PlayerY+-1.5052; FogoZ[3]=PlayerZ-2;
FogoX[4]=PlayerX+-1.7868; FogoY[4]=PlayerY+-2.4806; FogoZ[4]=PlayerZ-2;
FogoX[5]=PlayerX+-1.1713; FogoY[5]=PlayerY+-0.6008; FogoZ[5]=PlayerZ-2;
FogoX[6]=PlayerX+-2.4602; FogoY[6]=PlayerY+0.0455; FogoZ[6]=PlayerZ-2;
FogoX[7]=PlayerX+-2.7717; FogoY[7]=PlayerY+-0.6095; FogoZ[7]=PlayerZ-2;
FogoX[8]=PlayerX+-2.4602; FogoY[8]=PlayerY+0.0455; FogoZ[8]=PlayerZ-2;
IncendioAcontecendo = true;
GivePlayerMoneyEx(playerid,1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COR_GRO, "Vocк Ganhou R$ 1.000 Por Criar um Incendio !");
SetTimerEx("Incendio", 5000, false, "i", playerid);
SetPlayerCriminal(playerid,255,"Incendio");
return 1;
}
else return SendClientMessage(playerid, COLOR_GREY,"Vocк nгo й Criminoso!");
}