02.02.2010, 13:27
pawn Код:
if (strcmp("/mineactivate", cmdtext, true, 10) == 0)
{
CreateObject(mineactive, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96);
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, mineactiveX, mineactiveY, mineactiveZ))
CreateExplosion(mineactiveX, mineactiveY, mineactiveZ, 4, 10.0);
}
return 1;
}
when you type /mineactive, it creates object at your position, and because you are in mineactiveX, mineactiveY, mineactiveZ location at the time of creation of object,
it always explodes you. So could you say what you really want it to do.
For now, it's just one way to do suicide.