03.09.2011, 21:31
Hey i did bomb system but when i do /plantbomb the door not blowup code here
Код:
}
if(strcmp(cmd, "/buybomb", true) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 1, 1857.8447,-1848.9974,13.5808))
{
PlayerInfo[playerid][pBomb] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You bought a bomb for $5,000.");
SafeGivePlayerMoney(playerid, -5000);
return 1;
}
}
if(strcmp(cmd, "/plantbomb", true) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 1, 1459.8588,-1743.1594,721.2321))
{
if(PlayerInfo[playerid][pBomb] >= 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You planted the bomb the door will explode shortly");
DestroyPlayerObject(playerid, dooratbank);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
}
else
{
SendClientMessage(playerid, COLOR_CREAM, "You don't have a bomb.");
}
}
}


