Код:
if(strcmp(cmd, "/lspd", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(PlayerToPoint(5, playerid,233.7147,124.1429,1003.2188) || PlayerToPoint(1, playerid, 255.1717,75.0943,1003.6406) || PlayerToPoint(1, playerid, -1711.9617,1032.4753,17.9141) | PlayerInfo[playerid][pLocal] != 255)
{
if(giveplayerid != INVALID_PLAYER_ID)
{
TogglePlayerControllable(playerid, false);
ShowMenuForPlayer(LSPD,playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in the locker room.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a law enforcement official.");
return 1;
}
}
return 1;
}
the 1st 2 cords work but the last one when i go the last cords in server keeps saying im not in a locker room iv tryed diff cords samething even made it a diff command for the other faction with just the -1711.9617,1032.4753,17.9141 cords same thing any ideas?