07.09.2014, 08:21
How to make this that when player touch object, then it destroy.
Please help me! +REP
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;
}