0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function resetPlayerScore (thePlayer) local pname = getPlayerName(thePlayer) setElementData(thePlayer,"kills",0) setElementData(thePlayer,"deaths",0) setElementData(thePlayer,"dmg",0) setElementData(thePlayer,"Damage",0) setElementData(thePlayer,"level",0) setElementData(thePlayer,"exp",0) outputChatBox(tostring(pname) .."#36ff66 Skorunu Resledi.", getRootElement(), 147, 112, 219, true )end function chatKomut(mesaj, mesajTip)cancelEvent()if mesaj == "!rs" then resetPlayerScore()endendaddEventHandler("onPlayerChat",getRootElement(), chatKomut)
resetPlayerScore(source)