ahmad 3 Report post Posted September 26, 2018 helo pko! can someone share GetPlayerByName Extension/Function ? * how can playeffect on player without use skilleff/item example , give x player effect for 1 week or 1 month " but without use anyitem" thank you! Quote Share this post Link to post Share on other sites
Inuarashi 5 Report post Posted September 26, 2018 normally stuff relates to the player is reset when logged out, so if you want it to stay for a long time without it being removed while logging out then probably a database or a substitute for a database will be suitable. (like a text file) Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted September 27, 2018 Hello @ahmad! You can use VIP Addon released here by Billy and modify it to create ur custom playeffect function. It uses table serialization and with that will be possible set a duration to ur playeffect function.. Just edit some functions, debug and see results. Simple VIP Quote Share this post Link to post Share on other sites
ahmad 3 Report post Posted September 29, 2018 On 9/27/2018 at 3:53 AM, Satan said: Hello @ahmad! You can use VIP Addon released here by Billy and modify it to create ur custom playeffect function. It uses table serialization and with that will be possible set a duration to ur playeffect function.. Just edit some functions, debug and see results. Simple VIP this way for add stats by skilleff i was trying to add only playeffect role i'm trying to use GetPlayerByName(name) not working have this issue @Sultan can you share this function again? Quote Share this post Link to post Share on other sites
Sultan 68 Report post Posted September 29, 2018 (edited) GetPlayerByName Inside variables.lua roles = {} Inside cha_timer local name = GetChaDefaultName(role) if(roles[name] == nil)then roles[name] = role end Inside functions.lua function GetPlayerByName(name) return roles[name] end Note: Delete anything related to GetPlayerByName or roles table. Edited September 29, 2018 by Sultan 1 Quote Share this post Link to post Share on other sites