Jump to content
ahmad

GetPlayerByName /playeffect

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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


lelouch_signature_by_vahntheknight-d4uafwj.png

Share this post


Link to post
Share on other sites
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)

image.png.8b653aa0d3ae942af88b5de4b8435168.png

not working have this issue

image.png.e18013a8e1878f51308cce55e114d659.png

 

@Sultan can you share this function again?
 

Share this post


Link to post
Share on other sites

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 by Sultan
  • Like 1

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...