Kevlar help.
#2

Try this:
pawn Код:
if(strcmp(cmd, "/kevlar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            GiveNameSpcae(sendername);
            if(PlayerInfo[playerid][pMaskUse] == 1) {format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); }
            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 14)
            {
                if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,233.0675,123.5211,1003.2188))
                {
                    if(OnDuty[playerid]==0)
                    {
                        format(string, sizeof(string), "* Officer %s took an Kevlar vest from there locker.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        SetPlayerAttachedObject(playerid, 1, 19142,  1, 0.1,  0.05, 0.0,  0.0,   0.0,   0.0);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, " You are not in a locker room !");
                    return 1;
                }
            }
        }
    }
Reply


Messages In This Thread
Kevlar help. - by CStyles - 18.03.2012, 20:05
Re: Kevlar help. - by Yvax - 18.03.2012, 20:15
Re: Kevlar help. - by CStyles - 18.03.2012, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)