Jump to content

استفسار عن كود


Stranger

Recommended Posts

  
  
-------------lsdm_client.lua 
------------- 
------------- 
  
local x, y = guiGetScreenSize() 
  
SkinMusic = "data/music/SkinSelectMusic.ogg" 
SkinAnims = {"dnce_M_b","DAN_Left_A","DAN_Down_A","DAN_Loop_A"} 
StartSkin = 264 
SkinJobText = "" 
SkinJobColor = {255,255,255} 
NewSkin = false 
  
SkinDescriptions = {"Farmer Jenkins","Street Racer","","","","","","","News Lady","Old Grandmother","Barmaid", 
"Model","Gangsta Biatch","Old Man","Truck Man","Road Worker","IT Man","BeachGuard","Gangsta","ســعودي", 
"Rapper","Hip Hop Dancer","Skater","Gangsta","Ladies Man","Tourist","Builder","Drug Dealer", 
"Drug Dealer","Mexican Gangsta","Horse Breeder","Fisherman","Captain","Horseman","Fisherman", 
"Mailman","Mailman","Old Woman","Grandmother","Pretty Girl","Sportswoman", 
"Sportswoman","Taxi Driver","Salesman","Lifeguard","ســـعودي","Mexican Gangster","Taxi Driver", 
"Restaurant Owner","Engineer","Sportsman","Sportsman", 
"Gardener","Old Lady","Slut","Slut","Businessman","Gardener","ســـعودي","Dork","Pilot","Prisoner", 
"Slut","Slut","Slut","Drug Dealer","Bus Driver","Priest","Florist", 
"Butcher","Police Officer","Truck Man","Truck Man","Truck Man","Slut","Businesswoman","Homeless", 
"Homeless","Homeless","Boxer","Boxer","Elvis","Elvis","Elvis", 
"Slut","Slut","Porn Star","Gardener","Old Lady","Slut","Dancer","Babe","Dancer","Golfer","Farmer", 
"Athlete","Lifeguard","Dork","Sportman","Motorcyclist","Drug Addict", 
"Bloods Gangsta","Blood Gangsta","Bloods Gangsta Leader","Crove Gangsta","Crove Gangsta","Crove Gangsta", 
"Mexican Gangsta","Mexican Gangsta","Mexican Gangsta", 
"Russian Mafioso","Russian Mafioso","Mayor","Crips Gangsta","Crips Gangsta","Crips Gangsta","Chinese Mafioso", 
"Chinese Mafioso","Chinese Mafioso","Chinese Mafioso", 
"Japanese Gangster","Japanese Gangster","Japanese Gangster","Italian Mafioso","Italian Mafioso", 
"Italian Mafioso","German Guy","Motorcyclist","Old Lady", 
"Farmer","Wild Child","Hippy","Truck Man","Homeless","Homeless","Taxi Driver","Homeless","Slut","Slut","Slut", 
"Businesswoman","Bus Driver","Taxi Driver", 
"Artist","Slut","Artist","Mayor","News Anchor","News Anchor","Secretary","Fat Slut","Slut","Project Manager", 
"Lifeguard","Pizza Boy","Hairdresser","Farmer","Farmer", 
"Farmer","Farmer","Farmer","Combine Head","Security Guard","Security Guard","Security Guard","Security Guard", 
"Seller","Butcher","Chinese Slut","Chinese Guy", 
"Casino Employees","Casino Employees","Street Racer","Street Racer","Street Racer","Hairdresser","Hairdresser", 
"Porn Star","Mercenary","Tattoo Maker","Drunkard", 
"Taxi Driver","Bus Driver","Thief","Ladys Man","Chinese businessman","Business Man","Simple Man","Actor", 
"Black Lady","Dumped Lady","Lady","Student","BodyGuard", 
"Gangsta Biatch","Old Woman","Old Lady","Farmer","Homewive","Homeless Farmer","Truck Driver Lady", 
"Truck Driver","Kung-Fu Man","Kung-Fu Man","Hamburger Lady", 
"Truck Driver","Black Woman","Black Woman","Pizza Man","Simple Boy","Staff Lady","Homeless Man", 
"Homeless Drunk Guy","Important Lady","Black Old Woman","Beatiful Lady", 
"Staff Man","Old Lady","Office Girl","Beach Party Man","Club Dancer","Beach Man","Club Man","China Woman", 
"China Lady","Student Girl","Business Man", 
"Business Man","China Man","Homeless Guy","Simple Grandmother","Gangsta Grandmother","Lady","Vehicle Driver", 
"Old Man","Simple Guy","Cute Woman","Prostitute", 
"Homeless Man","Gentelman","Disko man","Big Show","Prostitute","Prostitute","Big Woman","Cop Stripper", 
"Bikers Member","Bikers Member","Beaver Skin Trader", 
"Formal Man","Swimming Woman","Swimming Man","Taxi Driver","Bikers Boss","Plane Pilot","School Girl?", 
"Naked Lady","Golf Club Member","Golf Club Member", 
"Road Worker","Drunk Man","Drunk Fat Man","Loyal Woman","Police Officer","Police Officer", 
"Police Officer","Car Painter","Gangster","Gangster","Gangster", 
"Mafia Member","Mafia Member","Medic","Medic","Medic","Firefighter","Firefighter","Firefighter", 
"Police Officer","Police Officer","Police Officer","Police Officer", 
"Police Officer","Police Officer","Police Officer","Police Officer","Police Officer","Police Officer", 
"Normal Man","Punk","Ceasar","Tatoo Man","Blind Man","Business Man", 
"Pimp The Real","DJ","Cheating Woman","Stupid Boy","Real Gangster","The Boss","Soldier Ryan","Pimp G**", 
"Gangsta Biatch","Motor Mechanic","Computer Freak","Weird Man", 
"Beckham Fan","Car Painter","Tehnology Boy","Big Show","Ex-Captain"} 
  
function SelectSkin () 
    setElementInterior ( getLocalPlayer(), 0, 0,0,0 ) 
    setCameraMatrix( 3878.8999023438,-1610.0999755859,17.1, 3878.9900488281,-1607.4000244141,16.5) 
    skin = createPed ( StartSkin, 3878.9900488281,-1608.4000244141,16.3,180 ) 
    setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) 
    fadeCamera( true, 5) 
    setTime(0,0) 
    SkinSelectMusic = playSound(SkinMusic,true) 
    bindKey("arrow_r","down",NextSkin) 
    bindKey("arrow_l","down",LastSkin) 
    bindKey("lshift","down",SpawnPlayer) 
    addEventHandler("onClientRender",getRootElement(),AnnounceSkinJob) 
    showCursor(true) 
end 
  
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), 
function() 
    SelectSkin() 
    FreezeBots() 
end) 
  
function NextSkin() 
    if StartSkin == 312 then 
        StartSkin = -1 
    elseif StartSkin == 2 then 
        StartSkin = 8 
    end 
        StartSkin = StartSkin + 1 
        setElementModel(skin,StartSkin) 
        setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) 
        SkinJobTextColor() 
end 
  
function LastSkin() 
    if StartSkin == 0 then 
        StartSkin = 313 
    elseif StartSkin == 9 then 
        StartSkin = 3 
    end 
        StartSkin = StartSkin - 1 
        setElementModel(skin,StartSkin) 
        setPedAnimation( skin, "DANCING", SkinAnims[math.random(1,4)]) 
        SkinJobTextColor() 
end 
  
function SkinJobTextColor() 
    if SkinDescriptions[StartSkin] == "Medic" then 
        SkinJobColor = {200,0,200} 
    elseif SkinDescriptions[StartSkin] == "Police Officer" then 
        SkinJobColor = {0,0,200} 
    elseif SkinDescriptions[StartSkin] == "Firefighter" then 
        SkinJobColor = {200,0,0} 
    elseif SkinDescriptions[StartSkin] == "Homeless" then 
        SkinJobColor = {0,200,0} 
    else 
        SkinJobColor = {200,200,200} 
    end 
end 
  
function AnnounceSkinJob() 
    if SkinDescriptions[StartSkin] == nil then 
        SkinJobText = "Civilian" 
    else 
        SkinJobText = SkinDescriptions[StartSkin] 
    end 
dxDrawText( SkinJobText, 0, y/2.2, x, y, tocolor ( SkinJobColor[1],SkinJobColor[2],SkinJobColor[3], 255 ), 3.02, "default-bold","center" )  
dxDrawRectangle ( x-x/1.5, y/1.23, x/3, y/20, tocolor ( 0, 0, 0, 230 ) ) 
end 
  
function SpawnPlayer() 
    local r,g,b = math.random(0,255),math.random(0,255),math.random(0,255) 
    triggerServerEvent ( "onClientWantsToSpawn", getLocalPlayer(), getLocalPlayer(),StartSkin,r,g,b ) 
    unbindKey("arrow_r","down",NextSkin) 
    unbindKey("arrow_l","down",LastSkin) 
    unbindKey("lshift","down",SpawnPlayer) 
    setTime(12,0) 
    stopSound(SkinSelectMusic) 
    removeEventHandler("onClientRender",getRootElement(),AnnounceSkinJob) 
    showCursor(false) 
    guiSetVisible(lnextskin,false) 
    guiSetVisible(rnextskin,false) 
    guiSetVisible(spawnskin,false) 
    setElementData(getLocalPlayer(),"red",r) 
    setElementData(getLocalPlayer(),"green",g) 
    setElementData(getLocalPlayer(),"blue",b) 
end 
  
lnextskin = guiCreateButton(x-x/1.54,y/1.22,x/11,y/34,"الخلف",false) 
guiSetProperty(lnextskin,"PushedTextColour","FFFF0000") 
rnextskin = guiCreateButton(x-x/1.83,y/1.22,x/11,y/34,"التالي",false) 
guiSetProperty(rnextskin,"PushedTextColour","FFFF0000") 
spawnskin = guiCreateButton(x-x/2.25,y/1.22,x/11,y/34,"انتقال",false) 
guiSetProperty(spawnskin,"PushedTextColour","FFFF0000") 
  
addEventHandler( "onClientGUIClick", getRootElement(), function() 
    if source == lnextskin then 
        LastSkin() 
    elseif source == rnextskin then 
        NextSkin() 
    elseif source == spawnskin then 
        SpawnPlayer() 
    end 
end) 
  
local tempData = { } 
      
    addEventHandler ( "onPlayerWasted", getRootElement(), 
        function ( ) 
            tempData [ source ] = 
                { 
                    weapons = getWeaponsTable ( source ), 
                    skin = getElementModel ( source ) 
                } 
        end 
    ) 
  
------PEDS 
  
WeaponSeller = createPed ( 30, 296.390625,-40.2216796875,1001.515625 ) 
setElementInterior ( WeaponSeller, 1, 296.390625,-40.2216796875,1001.515625 ) 
setPedAnimation( WeaponSeller, "BAR", "BARman_idle") 
  
BurgerSeller = createPed ( 167, 374.7841796875,-117.27734375,1001.4921875,180 ) 
setElementInterior ( BurgerSeller, 5, 374.7841796875,-117.27734375,1001.4921875 ) 
setPedAnimation( BurgerSeller, "GANGS", "hndshkcb") 
  
function FreezeBots() 
    local Bots = getElementsByType("ped") 
        for k,v in ipairs(Bots) do 
        setElementFrozen(v,true) 
    end 
end 

ياشباب هذا السكربت يعني اقدر اختار شخصيات اول ماتبدأ تجيك الشخصيات ( انا ابييها مثلا زي قروبات يعني قروب لشخصيات الخضر وقروب لشخصيات البننفسجي والاصفر والسماوي والشرطه ) وكل قروب يعني اذ جيت اختار شخصيه من قروب الخضر تجيني الكاميرا حقتها يعني تصوير الماكن الخاص بهم وانا اختار وكل قروب مايقدر يقتل واحد من فريقه اتمنى تكونو فهمتوني :$

Link to comment
قصدك مثل جراند العرب تبيه؟

لا زي حرب العصابات

-----------------------------------------------------------------------------

جراند العرب هي حرب العصابات ولا ؟ المهم ابيها زي حرب العصابات لاهنت تقدر ؟

Edited by Guest
Link to comment
قصدك مثل جراند العرب تبيه؟

لا زي حرب العصابات

-----------------------------------------------------------------------------

جراند العرب هي حرب العصابات ولا ؟ المهم ابيها زي حرب العصابات لاهنت تقدر ؟

اقدر اسويه لك لكن بمقابل

اذا موافق راسلني عالخاص

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