Destroy Object Help
#1

Alright, I am editing Vortex 1 and I am making a command to place road blocks for the LSPD. I understand how to spawn the objects in front of the player and such but how would I be able to make it so when someone goes to it and does /removerb the object is destroyed?

Thanks for any help you can provide.
Reply
#2

Well;

Do this.

pawn Код:
new RoadBlock;

command(yourcommand, playerid, params[]);
{
    RoadBlock = CreateObject(....);
}

command(removerb, playerid, params[])
{
    DestroyObject(RoadBlock);
}

Learn from that and you're fine.
Reply
#3

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Well;

Do this.

pawn Код:
new RoadBlock;

command(yourcommand, playerid, params[]);
{
    RoadBlock = CreateObject(....);
}

command(removerb, playerid, params[])
{
    DestroyObject(RoadBlock);
}

Learn from that and you're fine.
Thanks, I'll try that now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)