Eviles 179 Report post Posted March 2, 2018 (edited) Hello guys! I was been trying to make players fight in a map if conditions meets, but been stuck on that. Years ago i've seen on maindev that it possible to do on skilleffect.lua maybe... that method before using pos as condition, but i forgot what the function name or if it really located at skilleffect.lua. I've been reading src to try find any clue but no lucky. PK Mouse Icon can be enabled by using SetPkState(role, num) -> where num = 0 or 1 and IsInPK(role) returns if 0 or 1, what about to enable damage to player? - So.. probably according that what reading src i want a function to set getCmd_SetInPK() equal true or a function to make players able to fight in a map even if it isn't PK and just to the "role" if there's such function. Thanks !! Edited March 2, 2018 by Satan Quote Share this post Link to post Share on other sites
Andrew 32 Report post Posted March 2, 2018 Check is_friend function, in functions.lua This function checks if players (cha1, cha2) can attack each other return 1 -- Can't Attack return 0 -- Can Attack 1 Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted March 2, 2018 Continuing on what @Andrew said, if I remember correctly, I did this for Rush. 1 Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted March 2, 2018 Allright, thanks @Andrew and @Angelix that what i was been looking for ! Quote Share this post Link to post Share on other sites