Лёха-
Ученик
Кто нибудь помодите мне вшить в команду PlayerToPoint что бы с определенного места она работала вот сама каманда
if(strcmp(cmd,"/gate",true)==0)
{
if(IsPlayerConnected(playerid))
{
if (IsACop(playerid))
{
if(Blocks[playerid] == 0)
{
PlayerPlaySound(playerid, 1083 , 0.0, 0.0, 0.0);
ApplyAnimation(playerid,"CRIB","CRIB_Use_Switch",4.0,0,0,0,0,0);
MoveObject (kpp1, 67.37, -1537.80, 4.75-0.004, 0.004, 0.00, -90.00, 84.00);
Blocks[playerid] = 1;
}
else if(Blocks[playerid] == 1)
{
PlayerPlaySound(playerid, 1083 , 0.0, 0.0, 0.0);
ApplyAnimation(playerid,"CRIB","CRIB_Use_Switch",4.0,0,0,0,0,0);
MoveObject (kpp1, 67.37, -1537.80, 4.75+0.004, 0.004, 0.00, 0.00, 84.00);
Blocks[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не законник!");
}
}
return true;
}
if(strcmp(cmd,"/gate",true)==0)
{
if(IsPlayerConnected(playerid))
{
if (IsACop(playerid))
{
if(Blocks[playerid] == 0)
{
PlayerPlaySound(playerid, 1083 , 0.0, 0.0, 0.0);
ApplyAnimation(playerid,"CRIB","CRIB_Use_Switch",4.0,0,0,0,0,0);
MoveObject (kpp1, 67.37, -1537.80, 4.75-0.004, 0.004, 0.00, -90.00, 84.00);
Blocks[playerid] = 1;
}
else if(Blocks[playerid] == 1)
{
PlayerPlaySound(playerid, 1083 , 0.0, 0.0, 0.0);
ApplyAnimation(playerid,"CRIB","CRIB_Use_Switch",4.0,0,0,0,0,0);
MoveObject (kpp1, 67.37, -1537.80, 4.75+0.004, 0.004, 0.00, 0.00, 84.00);
Blocks[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не законник!");
}
}
return true;
}
