Here is the /mine command, I doubt it is the mine command, because when this happens, NO scripted commands work, not even /b
pawn Код:
CMD:mine(playerid, params[])
{
if(PlayerInfo[playerid][pJob] == 22 || PlayerInfo[playerid][pJob2] == 22)
{
if(IsPlayerInRangeOfPoint(playerid,10,469.50,867.63,-28.46) || IsPlayerInRangeOfPoint(playerid,10,463.02,871.85,-27.71) ||
IsPlayerInRangeOfPoint(playerid,10,459.96,882.49,-27.86) || IsPlayerInRangeOfPoint(playerid,10,465.82,889.89,-28.47))
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,656.39,724.26,-3.26) || IsPlayerInRangeOfPoint(playerid,10,738.61,948.88,-7.45) ||
IsPlayerInRangeOfPoint(playerid,10,506.88,968.60,-24.57))
{
if(PlayerInfo[playerid][pMineSkill] >= 26)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 2 miner +");
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,423.04,834.35,7.35) || IsPlayerInRangeOfPoint(playerid,10,468.08,967.21,5.53))
{
if(PlayerInfo[playerid][pMineSkill] >= 51)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 3 miner +");
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,10,495.27,780.02,-21.75))
{
if(PlayerInfo[playerid][pMineSkill] >= 101)
{
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid, "IsFrozen", 1);
SetPVarInt(playerid, "MineIronTime", 30);
SetTimerEx("MineIron", 1000, 0, "dd", playerid);
ApplyAnimation(playerid,"MISC","KAT_Throw_K ",4.1,1,0,0,0,0,1);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not a level 4 miner +");
}
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You are not at the iron mines");
}
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not a Miner!");
return 1;
}