fckng Posted January 9, 2024 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 29 Reputation: 1 Joined: 03/27/13 Last Seen: March 17 Share Posted January 9, 2024 (edited) 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 January 10, 2024 by fckng Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 10, 2024 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Yesterday at 06:41 AM Share Posted January 10, 2024 try this: Quote EquipScript: | atcommand "@adjgroup 6"; UnEquipScript: | atcommand "@adjgroup 0"; Quote Link to comment Share on other sites More sharing options...
0 fckng Posted January 10, 2024 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 29 Reputation: 1 Joined: 03/27/13 Last Seen: March 17 Author Share Posted January 10, 2024 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: Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted January 10, 2024 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Yesterday at 06:41 AM Share Posted January 10, 2024 (edited) 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 January 10, 2024 by GM Winter Quote Link to comment Share on other sites More sharing options...
0 fckng Posted January 10, 2024 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 29 Reputation: 1 Joined: 03/27/13 Last Seen: March 17 Author Share Posted January 10, 2024 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 Quote Link to comment Share on other sites More sharing options...
Question
fckng
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 fckngLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.