Need help fast. +1 rep
#4

pawn Код:
CMD:lspdlocker(playerid, params[])
{
    new str[128];
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 254.0871,73.6980,1003.6406,181.3983))
    {
        if(PInfo[playerid][pCop] >= 2 && PInfo[playerid][OnDuty] == 1)
        {
            ShowPlayerDialog(playerid,1212,DIALOG_STYLE_LIST,"LSPD LOCKER","Weapons\nSkins\nArmour/Pills", "OK","CANCEL");
            format(str, sizeof(string)," You are not an OnDuty Officer, %s %s",copLevel(playerid),PlayerName(playerid));
            SendClientMessage(playerid,COLOR_GREY,str);
        }
    }
    else
    {
        format(str, sizeof(string)," You are not an OnDuty Officer, %s %s",copLevel(playerid),PlayerName(playerid));
        SendClientMessage(playerid,COLOR_GREY,str);
        return 1;
    }
    return 1;
}
CMD:onduty(playerid, params[])
{
    if(PInfo[playerid][pCop] >= 2)
    {
        SendClientMessage(playerid, COLOR_GREEN, "fuck siv");
        PInfo[playerid][OnDuty] = 1;
    }
    else //if he has not got the permissions
    {
        SendClientMessage(playerid, COLOR_RED, "OMG are you stupid fuck siv"); //return this message
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Need help fast. +1 rep - by Jesper00 - 25.02.2014, 17:25
Re: Need help fast. +1 rep - by LocMax - 25.02.2014, 17:29
Re: Need help fast. +1 rep - by Bingo - 25.02.2014, 17:29
Re: Need help fast. +1 rep - by MattTucker - 25.02.2014, 17:33
Re: Need help fast. +1 rep - by Jesper00 - 25.02.2014, 17:44
Re: Need help fast. +1 rep - by MattTucker - 25.02.2014, 17:50
Re: Need help fast. +1 rep - by Jesper00 - 25.02.2014, 17:55
Re: Need help fast. +1 rep - by Jesper00 - 25.02.2014, 18:00
Re: Need help fast. +1 rep - by MattTucker - 25.02.2014, 18:04
Re: Need help fast. +1 rep - by Jesper00 - 25.02.2014, 18:25

Forum Jump:


Users browsing this thread: 2 Guest(s)