Jump to content
  • 0

Equipments with Command arealoot


fckng

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

I want to create an item that, when equipped, will give the @arealoot function to the player.

The @arealoot command will only be released on these items, it will not be enabled for the player without the specific item using

I tried to create a group and add it to the item, but the error appears:

"the specified group does not exist"

@adjgroup failed

 

 

Example: 

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{},{ atcommand "@adjgroup 6 "+ strcharinfo(0); }

 

id: 6
    name: "Script Manager"
    inherit: ( "Support" )
    level: 0
    commands: {
        arealoot: true

///

This is how it works, but when you unequip the item the command remains active.

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{atcommand "@arealoot"; },{},{}

Edited by fckng
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

try this:

 

Quote

    EquipScript: | 
      atcommand "@adjgroup 6";
    UnEquipScript: |
      atcommand "@adjgroup 0";

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

1 hour ago, GM Winter said:

The adjgroup assignment worked
However, it is not assigning the @arealoot to the equipped item 

item: 

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{atcommand "@adjgroup 6";},{ atcommand "@adjgroup 0";}

{
    id: 6
    name: "Arealoot"
    level: 0
    inherit: ( "Support", "Law Enforcement" )
    commands: {
        arealoot: true
    }
    log_commands: true
    permissions: {
        arealoot: true
    }
},

I don't want @arealoot's player
and yes, the command is automatically assigned when equipping the item

 

1 hour ago, GM Winter said:

    id: 6
    name: "Arealoot"
    level: 0
    inherit: ( "Support", "Law Enforcement" )
    commands: {
        arealoot: true
    }
    log_commands: true
    permissions: {
        arealoot: true
    }
},

 

 

1 hour ago, GM Winter said:

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

58 minutes ago, fckng said:

 

 

 

 

Change this:

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{atcommand "@adjgroup 6";},{ atcommand "@adjgroup 0";}

to this

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{atcommand "@adjgroup 6";}

you can also follow this guide: 

 

Edited by GM Winter
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  03/27/13
  • Last Seen:  

19 hours ago, GM Winter said:

Change this:

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{atcommand "@adjgroup 6";},{ atcommand "@adjgroup 0";}

to this

2301,Cotton_Shirt,Camisa de Algodão,4,10,,100,,1,,0,0xFFFFFFFF,7,2,16,,0,1,0,{},{atcommand "@adjgroup 6";}

you can also follow this guide: 

 

 

 

 

Im follow this guide

 

   id: 6
    name: "Arealoot"
    level: 0
    inherit: ( "Support", "Law Enforcement" )
    commands: {
        arealoot: true
    }
    log_commands: true
    permissions: {
        arealoot: true
    }
},

 

But when equipped active command -OK

When unequipped dont stay desactive command

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...