A Little help, Please
#1

Hello,
I would like this script changed from being a riot shield to armor.
I did a few edits like the /armor and the "[SCRP]: you are not a cop!" and "You are now wearing armor."

pawn Код:
if(strcmp("/armor", cmdtext, true, 10) == 0)//Riot Shield - PaNoULiS
    {
        if(PlayerInfo[playerid][pSFMember] != 1 && PlayerInfo[playerid][pRank] <= 3)
        {
            SendClientMessage(playerid, COLOR_RED, "[SCRP]: Error, You are Not a cop!");
            return 1;
        }
        SendClientMessage(playerid, COLOR_WHITE, "You are Now wearing Armor.");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "** %s grabs a pair of police armor and puts it on.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        PutRiotShieldOnArm(playerid);
        return 1;
    }
Reply
#2

You need to edit this:
pawn Код:
PutRiotShieldOnArm(playerid);
And if i am right, then it should look lihe this:
pawn Код:
PutArmorOnBody(playerid);
Reply
#3

Is this part right?

pawn Код:
//Police Armor System - Sean :D
PutArmorOnBody(playerid)
{
    if(IsPlayerAttachedObjectSlotUsed(playerid, 1));
    SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
    SetPlayerArmour(playerid,100.0);
}
Reply
#4

In my eyes, this is OK.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)