How to destroy object when touch it. [+REP]
#1

How to make this that when player touch object, then it destroy.
pawn Код:
forward removeObjects();
forward remove();
CMD:lol(playerid, paramas[])
{
   new Float:x, Float:y, Float:z, Float:a;
   GetPlayerFacingAngle(playerid, a);
   GetPlayerPos(playerid, x, y, z);
   CreateObject(3409, x, y, z - 1.3, 0.0, 0.0, a + 90);
   SetTimer("removeObjects", 5000, false);
   return 1;
}

public removeObjects()
{
    remove();
    return 1;
}

public remove()
{
    // Here i want that, when player touch this object what player made in CMD:lol then it destroy it.
    return 1;
}
Please help me! +REP
Reply


Messages In This Thread
How to destroy object when touch it. [+REP] - by finelaq - 07.09.2014, 08:21
Re: How to destroy object when touch it. [+REP] - by MasonSFW - 07.09.2014, 08:31
Re: How to destroy object when touch it. [+REP] - by finelaq - 07.09.2014, 08:33
Re: How to destroy object when touch it. [+REP] - by finelaq - 07.09.2014, 08:39
Re: How to destroy object when touch it. [+REP] - by Evocator - 07.09.2014, 08:42
Re: How to destroy object when touch it. [+REP] - by finelaq - 07.09.2014, 08:45

Forum Jump:


Users browsing this thread: 3 Guest(s)