02.02.2010, 12:50
i have the script like this:
Код:
{ new Float:X; new Float:Y; new Float:Z; GetPlayerPos(playerid, X, Y, Z); new mine = CreateObject(1213, X, Y, Z, 0, 0, 96); if (strcmp("/mine", cmdtext, true, 10) == 0) { CreateObject(mine, X, Y, Z, 0, 0, 96); return 1; } new Float:mineactiveX; new Float:mineactiveY; new Float:mineactiveZ; GetObjectPos(mine, mineactiveX, mineactiveY, mineactiveZ); new mineactive = CreateObject(mine, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96); 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; } return 0; }
how to solve that??