18.01.2010, 19:08
pawn Код:
if(strcmp(cmd, "/duty", true) == 0)
{
if(!(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1))return SendClientMessage(playerid, COLOR_GREY, "Invalid Faction/Type.");
if (!IsPlayerInRangeOfPoint(playerid,5.0,PoliceDutyPosition[X],PoliceDutyPosition[Y],PoliceDutyPosition[Z]))return SendClientMessage(playerid, COLOR_GREY, "You are not at the duty position!");
if(GetPlayerVirtualWorld(playerid) != PoliceDutyPosition[World])return SendClientMessage(playerid, COLOR_GREY, "You are not at the duty position!");
ShowMenuForPlayer(copduty,playerid);
return 1;
}