Create- and DestroyObject.
#1

Hello,

I want to update my weed system with getting a plant on the ground.
So, for example:
pawn Код:
if(strcmp(cmd, "/plant", true) == 0)
{
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            new a = CreateObject(688, X, Y, Z, 0.0, 0.0, 96.0);
}
okay, and now..?
I made that 'a' because when the player types /pickweed, the object
needs to be destroyed.. Okay, what should i do now? Anyone ideas?


PS: Which is the best ObjectID for the drug plant?
Reply


Messages In This Thread
Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 18:07
Re: Create- and DestroyObject. - by Kwarde - 28.01.2011, 18:10
Re: Create- and DestroyObject. - by Backwardsman97 - 28.01.2011, 18:15
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 20:38
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 20:45
Re: Create- and DestroyObject. - by Kasis - 28.01.2011, 20:49
Re: Create- and DestroyObject. - by Kwarde - 29.01.2011, 07:45
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 29.01.2011, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)