Jump to content

تم الافادة من قبل دؤن


Jey

Recommended Posts

بسم الله الرحمن الرحيم

السلام عليكم

أبي فنكشنات اذا اللاعب دخل يجيب سيريلو و يعطيها باند

:mrgreen:

#Edit

+ فنشكنات

يكتب كلمة اف 8 يسوي باسورد للسيرفر

و لا حد يجي يقولي سوي باسورد من لوحة الادمنية :mrgreen:

Edited by Guest
Link to comment

امسك سويته لك

اول سطر حط السريال الي تبي تصكه باند

local Serial = "السريال" 
function Don (  ) 
    if getPlayerSerial ( source ) == Serial then 
    banPlayer ( source , false,false,true,root,"غير مسموح لك بالدخول هه" ) 
    end 
end 
addEventHandler("onPlayerJoin",root,Don) 

والطلب الثاني موجود في الويكي -_-

addCommandHandler( "setpassword", -- add a command handler for the command 
   function( thePlayer, command, password ) 
      if #password < 3 then -- check if the password is shorter than 3 letters 
         outputChatBox( "The password needs to be atleast 3 letters long!", thePlayer ) -- tell the player that password was too short 
         return -- abort command 
      end 
      local success = setServerPassword( password ) -- check whether changing password worked 
      if success then 
         outputChatBox( "Server password change to: " .. password, thePlayer ) -- if it did, tell the player 
      else 
         outputChatBox( "Failed to change servers password.", thePlayer ) -- if it didn't, tell the player 
      end 
   end 
) 

لا تنسى تضيفه في قروب الادمن عشان صلاحيات الباند

Link to comment

تفضل

function Don (  ) 
    local DonSerials = getPlayerSerial ( source ) 
    local DonCountry = exports.admin:getPlayerCountry( source ) or "N/A" 
    outputChatBox("* "..getPlayerName(source).." has been join from "..DonCountry.." serial: "..DonSerials.."",root,255,255,0,true ) 
    end 
addEventHandler("onPlayerJoin",root,Don) 

وبخصوص الاصدار والله ما عرفت لها بالضبظ مادري هل هي موجوده اصلا ولا لا :lol:

+ العفو حياك الله

Link to comment

مشكور ما قصرت بس يريت تضيف لي ذي الاشياء

getPlayerVersion 
getRealTime 
getPlayerIP 
getPlayerPing 

#Edit

أخوي

يريت يكون بنفس الشكل ذا

b7elUz.png

يعني يكون فوق بعض مب بنفس السطر

و مرتب كذا

و تكون ما قصرت و يكون مشكور

Link to comment

سم تفضل هههههههههههههههههههه :lol:

بس انت عدل على اكواد الالوان :)

function Don (  ) 
    local time = getRealTime() 
    local Donhours = time.hour 
    local Donminutes = time.minute 
    local DonSecond = time.second 
    local DonIP = getPlayerIP ( source ) 
    local DonPing = getPlayerPing ( source ) 
    local DonVersion = getPlayerVersion ( source ) 
    local DonSerials = getPlayerSerial ( source ) 
    local DonCountry = exports.admin:getPlayerCountry( source ) or "N/A" 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFhas been join from ["..DonCountry.."] serial: ["..DonSerials.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFversion: ["..DonVersion.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFping: ["..DonPing.."] ip: ["..DonIP.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFtime : ["..Donhours..":"..Donminutes..":"..DonSecond.."]",root,255,255,0,true ) 
    end 
addEventHandler("onPlayerJoin",root,Don) 

+ اعتقد لازم تضيفه لقروب الادمن عشان الايبي

Link to comment
    function Don (  ) 
        local time = getRealTime() 
        local Donhours = time.hour 
        local Donminutes = time.minute 
        local DonSecond = time.second 
        local DonIP = getPlayerIP ( source ) 
        local DonPing = getPlayerPing ( source ) 
        local DonVersion = getPlayerVersion ( source ) 
        local DonSerials = getPlayerSerial ( source ) 
        local DonCountry = exports.admin:getPlayerCountry( source ) or "N/A" 
        outputChatBox("#ff0000* "..getPlayerName(source).." #FFFFFFHas been Joined from ["..DonCountry.."] Player Serial: ["..DonSerials.."]",root,255,255,0,true ) 
        outputChatBox("#00FF22* "..getPlayerName(source).." #FFFFFF MTA version: ["..DonVersion.."]",root,255,255,0,true ) 
        outputChatBox("#FFA304* "..getPlayerName(source).." #FFFFFFPing: ["..DonPing.."] ip: ["..DonIP.."]",root,255,255,0,true ) 
        outputChatBox("#040CFF* "..getPlayerName(source).." #FFFFFFTime : ["..Donhours..":"..Donminutes..":"..DonSecond.."]",root,255,255,0,true ) 
        end 
    addEventHandler("onPlayerJoin",root,Don) 

طيب اخوي ينفع تسوي لي ال اوت شات بوكس حق السريال لحالو ؟

,و الايبي كمان

+ وش ال يضحك ؟

Edited by Guest
Link to comment

يب ينفع اكيد -_-

function Don (  ) 
    local time = getRealTime() 
    local Donhours = time.hour 
    local Donminutes = time.minute 
    local DonSecond = time.second 
    local DonIP = getPlayerIP ( source ) 
    local DonPing = getPlayerPing ( source ) 
    local DonVersion = getPlayerVersion ( source ) 
    local DonSerials = getPlayerSerial ( source ) 
    local DonCountry = exports.admin:getPlayerCountry( source ) or "N/A" 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFhas been join from ["..DonCountry.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFserial: ["..DonSerials.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFversion: ["..DonVersion.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFping: ["..DonPing.."] ip: ["..DonIP.."]",root,255,255,0,true ) 
    outputChatBox("* "..getPlayerName(source).." #FFFFFFtime : ["..Donhours..":"..Donminutes..":"..DonSecond.."]",root,255,255,0,true ) 
    end 
addEventHandler("onPlayerJoin",root,Don) 

+ الي يضحك كثرت اللوكلات :lol:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...