/Cuff not working with Skins COPS
#1

Hi everyone I make /cuff system its worked But there is a small Problem

When i joined Cops Skin 280 its not work and if i joined Army Skin 287 not Work ... Its only work with skin 287 Why??

Код:
CMD:cuff(playerid, params[])
{
    new targetid;
    if(GetPlayerSkin(playerid) != 285 && 280 && 287) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Place only For SWAT, you are not Police");
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "[USAGE]: /cuff [Part of Name/Player ID]");
    if(IsPlayerConnected(targetid))
        {
            new Float:x, Float:y, Float:z;
               GetPlayerPos(playerid, x, y, z);
               if(IsPlayerInRangeOfPoint(targetid, 5.0, x, y, z))
                   {
                    new str[512];
                      new name[MAX_PLAYER_NAME];
                       GetPlayerName(playerid, name, sizeof(name));
                       new target[MAX_PLAYER_NAME];
                       GetPlayerName(targetid, target, sizeof(target));
                       format(str, sizeof(str), "INFO: You have cuffed %s!",target);
                       SendClientMessage(playerid, 0xE01B1B, str);
                       format(str, sizeof(str), "WARNING: You have been cuffed by %s!",name);
                       SendClientMessage(targetid, 0xE01B1B, str);
                       SetPlayerAttachedObject(targetid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000);
                      SetPlayerSpecialAction(targetid,SPECIAL_ACTION_CUFFED);
                      return 1;
                }

        }
    return 1;
}
I Placed the Skins Ids its only work SWAT
Reply


Messages In This Thread
/Cuff not working with Skins COPS - by Thanks - 15.12.2016, 18:32
Re: /Cuff not working with Skins COPS - by 025Tadija - 15.12.2016, 18:40
Re: /Cuff not working with Skins COPS - by Thanks - 15.12.2016, 18:50
Re: /Cuff not working with Skins COPS - by saffierr - 15.12.2016, 19:26
Re: /Cuff not working with Skins COPS - by RedRex - 15.12.2016, 19:50
Re: /Cuff not working with Skins COPS - by Thanks - 15.12.2016, 19:52
Re: /Cuff not working with Skins COPS - by 025Tadija - 15.12.2016, 20:40
Re: /Cuff not working with Skins COPS - by saffierr - 15.12.2016, 20:43
Re: /Cuff not working with Skins COPS - by Thanks - 15.12.2016, 22:32
Re: /Cuff not working with Skins COPS - by Reignbow - 16.12.2016, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)