SA-MP Forums Archive
Problem with RemoveObjects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with RemoveObjects (/showthread.php?tid=369846)



Problem with RemoveObjects - Sanady - 18.08.2012

Hello everybody.When my freind made map for my server we deleted some of objects.But I put them into OnPlayerConnect but They don`t want to delete.Why?

pawn Код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 1283, 1345.7656, -1740.6172, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 1330.2188, -1736.6797, 16.4219, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1325.7109, -1732.8281, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1335.1953, -1731.7813, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1642.3281, 18.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1305.5625, -1641.5313, 12.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 1297, 1292.1797, -1629.1016, 15.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 1297, 1292.3125, -1592.5781, 15.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1305.5625, -1614.8281, 12.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1622.3281, 18.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1602.3281, 18.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1305.6719, -1583.7031, 12.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1582.3203, 18.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1562.3203, 18.2266, 0.25);
        return 1;
}