Lekub
Новичок
Проблема в том что после того как одеваешь наручники и пытаешься затащить в машину , пишет снова "оденьте наручники" , хотя игрок уже в наручниках
PHP:
if(strcmp(cmd, "/putincar", true) == 0 || strcmp(cmd, "/cput", true) == 0)
{
if(IsACop(playerid))
{
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_RED, "{FF3200} ! {FEFEFE} - Нельзя использовать пока вы связанны!");
return true;
}
if(PlayerCuffed[giveplayerid] != 2)
{
SendClientMessage(playerid, COLOR_GREY, "{FF3200} ! {FEFEFE} - Необходимо сначала надеть наручники!");
return true;
}
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREY,"{FF3200} ! {FEFEFE} - Вы должны находится в машине");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "{F74848}» Используйте:{FFFFFF} /cput [ID]");
return true;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(IsACop(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "{FF3200} ! {FEFEFE} - Вы не можете затащить законника!");
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid){SendClientMessage(playerid, COLOR_GREY, "{FF3200} ! {FEFEFE} - Вы не можете затащить самого себя!");return true;}
PutPlayerInVehicle(giveplayerid, vehicleid, 3);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{FF3200} ! {FEFEFE} - Игрок не рядом с Вами!");
}
return true;
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED,"{FF3200} ! {FEFEFE} - Вы не законник!");
}
return true;
}
