HelpGuys Posted January 9, 2018 Share Posted January 9, 2018 --سيرفر function Enviar (cantidad, name) for i,v in ipairs(getElementsByType("player")) do setElementData(v, "PlayTime", getElementData(v,"PlayTime") or 0 ) + cantidad end outputChatBox("ساعة ["..cantidad.."] قامت الادارة بأعطاء حميع اللاعبين",root,255,255,255,true) end addEvent("SendHours1", true) addEventHandler("SendHours1", getRootElement(), Enviar) Link to comment
Doffy Posted January 9, 2018 Share Posted January 9, 2018 try function Enviar (cantidad, name) for i,v in ipairs(getElementsByType("player")) do local Himoo = getElementData( v , "PlayTime" ) or 0 setElementData ( v , "PlayTime" , Himoo+cantidad ) end outputChatBox("ساعة ["..cantidad.."] قامت الادارة بأعطاء حميع اللاعبين",root,255,255,255,true) end addEvent("SendHours1", true) addEventHandler("SendHours1", getRootElement(), Enviar) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now