hadiesyafiq 7 Posted November 27, 2020 Hi dev...how to set player get group id 10 when login for temporary and will be group id 0 when logout example i put this script on headgear if player wear it get group id 10 when take off it will be group id 0 is the script will be @ajgroup? Quote Share this post Link to post Share on other sites
0 Daraen 7 Posted November 29, 2020 The command to change group_id is @adjgroup <group_id> use @ if you want it on yourself. Use #adjgroup to use it on a player! example: #adjgroup <char name> <parameters>. Regarding the script item, I haven't tested but don't forget to add it in "OnEquipScript:" this will allow the player to switch to group_id 10 as soon as he equips the object. If he disconnects, the player will revert to the default value defined in the sql. However, if the hat is still equipped when reconnecting, the group id will go back to 10 ( Thesis to be checked because it is not an OnPCLoginEvent : ). To switch back to group_id 0 when unequipping the object, use the same functions as in "OnEquipScript:" in an "OnUnequipScript:" and set the value to 0 Quote Share this post Link to post Share on other sites
Hi dev...how to set player get group id 10 when login for temporary and will be group id 0 when logout
example
i put this script on headgear if player wear it get group id 10 when take off it will be group id 0 is the script will be @ajgroup?
Share this post
Link to post
Share on other sites