Help - it's really easy for you, but hard for me.
#8

Yes, very possible, just not with the include you're using, you must use the native RemoveBuildingForPlayer.
Example ZCMD commands based on your code (I strongly advise you to switch to zcmd because it's faster and easier):

pawn Код:
new RemoveObjectVar2;

COMMAND:enter(playerid, params[])
{
    if (IsPlayerInRangeOfPoint(playerid, 1.0, 172.66, -152.10, 1.72)) // checks if in range of the /enter point
    {
        RemoveBuildingForPlayer(playerid, 12923, 158.3594, -176.3047, 5.5703, 0.25);
        SetPlayerPos(playerid, 170.75, -153.94, 1.81); // Sets their new position
    }
    return 1;
}
COMMAND:exit(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 170.85, -153.85, 1.48)) // Checks if near the exit door
    {
        RemoveObjectVar2 = CreateObject(12923, 158.3594, -176.3047, 5.5703);
        SetPlayerPos(playerid, 172.24, -152.26, 1.81);
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)