Jump to content

?


z24d

Recommended Posts

وش المشكلة بالكود ذا

setTeamFriendlyFire(zTeam,false) 
local zTeam = createTeam("Players",255,255,0) 
addEventHandler("onPlayerJoin", root, 
function() 
setPlayerTeam(source,zTeam) 
end 
) 
  

ابي الفريق اذا طلقو علا بعض مايصير شيء شسالفهه

Link to comment
addEventHandler('onClientRender',root, 
function() 
local nameTeam = getTeamFromName("Admin") 
local playersonTeam = getPlayersInTeam(nameTeam) 
            local x, y, z = getPedBonePosition(sPed, 4) 
            local sx, sy = getScreenFromWorldPosition(x, y, z+0.9) 
            if sx and sy then 
                dxDrawText(playersonTeam , sx + 1, sy + 1, sx + 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") 
                dxDrawText(playersonTeam , sx + 1, sy - 1, sx - 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") 
                dxDrawText(playersonTeam , sx - 1, sy - 1, sx - 1, sy - 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") 
                dxDrawText(playersonTeam , sx, sy, sx, sy, tocolor(r, g, b, 255), 1.3, "bankgothic", "center") 
            end 
    end 
) 

تعديل##

Edited by Guest
Link to comment
function EnterSpawn() 
    if team == "Admin" then -- 
    if not ( getPlayerTeam(localPlayer) == getTeamFromName("Admin") ) then return triggerServerEvent("cantJoin",localPlayer) end 
    triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) 
    unbindKey("arrow_l", "down", sLeft) 
    unbindKey("arrow_r", "down", sRight) 
    unbindKey("enter", "down", EnterSpawn) 
    showPlayerHudComponent("all", true) 
    removeEventHandler("onClientPreRender", root, drawTeamName) 
    destroyElement(sPed) 
    triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) 

لاهنت ياخوي شف الكود هذا حق مود اختيار الشخصية حق سعد حطيت شخصيةة

مايدخلها الا الي بتيم الادمن

كل شيء تمام لكن المشكلة التيمات الثانية ماقدر اختار منها شيء اضغط انتر مايقول شيء ولا يسوي شيء

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...