Jump to content

طلب كود


Recommended Posts

if getElementModel(source)== 288 then ------- رقم شخصيه ارمي  
setPlayerTeam(source,"Police") ------- اعطاء تيم 

ضيفه للكود الي معك هذول الفنكشات

بس الافضل تعمل جدول بكل شخصيات الشرطه

Link to comment

اول شيء سوي تيم من الادمنيه واختار شخصيه من اللوحه

وجرب الكودين هذي

#Client

addEventHandler ( "onClientGUIClick", root, function (    ) 
    if ( source == اسم الزر ) then -- اسم زر دخول التيم 
    triggerServerEvent ( "setTeam_", localPlayer ) 
    end 
end ) 

#Server

addEvent ( "setTeam_", true ) 
addEventHandler ( "setTeam_", root, function (    ) 
        setPlayerTeam ( source, "اسم التيم الي سويته من الادمنيه" ) 
        outputChatBox ( "#00FF00* تم اختيار شخصيه بنجاح ودخول التيم", source, 255, 255, 255, true ) 
end ) 

او تقدر تخلي سيرفر كذا , يعني بدون ماتسوي تيم من الادمنيه

addEvent ( "setTeam_", true ) 
addEventHandler ( "setTeam_", root, function (    ) 
        local Team_ = createTeam ( "اسم التيم", 255, 0, 0 ) 
        if ( Team_ ) then 
        setPlayerTeam ( source, Team_ ) 
        outputChatBox ( "#00FF00* تم اختيار شخصيه بنجاح ودخول التيم", source, 255, 255, 255, true ) 
end ) 

Edited by Guest
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...