07.06.2011, 20:46
here's my code...
pawn Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == CommercialBuildingArea && GetPlayerVehicleID(playerid) == 592 && gTeam[playerid] == TEAM_TERRORIST)
{
AbleToBlowCommercialBuilding[playerid] = 1;
}
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(AbleToBlowCommercialBuilding[playerid] == 1)
{
MoveDynamicObject(CommercialBuilding,1024.31127930,3727.24169922,-119.52521515,15);
SendClientMessage(playerid, 0x00C7FFAA, "You have crashed your Andromada into the Commercial Building");
AbleToBlowCommercialBuilding[playerid] = 0;
}