اللي يعجبك
function showPlayers()
local numPlayers = getPlayerCount() -- get number of currently connected players
local maxPlayers = getMaxPlayers() -- get maximum number of players on the server
outputChatBox("There are " .. numPlayers .. "/" .. maxPlayers .. " players playing", source) -- output a message to the joining player
end
addEventHandler("onPlayerJoin", getRootElement(), showPlayers) -- add the function as a handler for the "onPlayerJoin" event
في ملف اسمه q1.lua
وحطيت في ملف ال
meta.xml
<meta>
<info name="Spawn" author="KoBrA" version="1.0.0" type="script" />
<script src="q1.lua" type="server"/>
</meta>
وساويت ريشيف zip لهم الثنين ورفعتهم
وركبتهم وما اشتغلووووووووووو ليش