Jump to content

طلب اكواد تيم


Recommended Posts

ابي كود لو اظغط على زر يحركني لتيم معين

الطلب الأول ^

-- Client Side !

addEventHandler ( "onClientGUIClick", اسم الزر, 
    function ( ) 
        triggerServerEvent ( "setTeam", localPlayer ) 
    end 
) 

-- Server Side !

addEvent ( "setTeam", true ) 
addEventHandler ( "setTeam", root, 
    function ( ) 
        setPlayerTeam ( source, getTeamFromName ( "اسم التيم" ) ) 
    end 
) 

وكود يمنع مود زي الاف 1 فري روم

عن تيم معين

الطلب الثآني ^

https://forum.multitheftauto.com/viewtopic.php?f=160&t=55016&p=532012#p532012

Link to comment

يا برستيج شوف

     S = createTeam ("Gangs",255,0,0) 
     addEvent("sami",true) 
     addEventHandler("sami",root, 
     function () 
     setPlayerTeam(source,S) 
     spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,115 ) 
    giveWeapon ( source, 30, 9999,true ) 
          giveWeapon ( source, 22, 9999,true ) 
  
    end 
    ) 

كذا صح انا مجربه بس فيه غلط الشخصيه ما تتغير ليه؟؟؟

Link to comment

local S = createTeam ("Gangs",255,0,0) 
 addEvent("sami",true) 
addEventHandler("sami",root, 
     function () 
    spawnPlayer (source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115,0,0,S) 
    giveWeapon ( source, 30, 9999,true ) 
    giveWeapon ( source, 22, 9999,true ) 
 end 
) 
Edited by Guest
Link to comment
يا برستيج شوف
     S = createTeam ("Gangs",255,0,0) 
     addEvent("sami",true) 
     addEventHandler("sami",root, 
     function () 
     setPlayerTeam(source,S) 
     spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,115 ) 
    giveWeapon ( source, 30, 9999,true ) 
          giveWeapon ( source, 22, 9999,true ) 
  
    end 
    ) 

كذا صح انا مجربه بس فيه غلط الشخصيه ما تتغير ليه؟؟؟

bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) 

Link to comment

برستيج ركبت الكود حقك وخرب المود كامل ما يسوي اي شيء هههه

صلح لي حق الشخصيات بس

ما يتغير الشخصيه وش فيه الغلط

كل شيء شغال الا تغيير الشخصيه

Link to comment
  
S = createTeam ("Gangs",255,0,0) 
addEvent("sami",true) 
addEventHandler("sami",root, 
function () 
    setPlayerTeam(source,S) 
    spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) 
    giveWeapon ( source, 30, 9999,true ) 
    giveWeapon ( source, 22, 9999,true ) 
end) 

Link to comment
  
S = createTeam ("Gangs",255,0,0) 
addEvent("sami",true) 
addEventHandler("sami",root, 
function () 
    setPlayerTeam(source,S) 
    spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) 
    giveWeapon ( source, 30, 9999,true ) 
    giveWeapon ( source, 22, 9999,true ) 
end) 

spawnPlayer بالخيارات الإضافية في setPlayerTeam تقدر تختصر

Optional Arguments

rotation: rotation of the player on spawn.

skinID: player's skin on spawn. Character Skins

interior: interior the player will spawn into. Interior IDs

dimension: The ID of the dimension that the player should be in.

theTeam: the team the player will join.

Link to comment
  
S = createTeam ("Gangs",255,0,0) 
addEvent("sami",true) 
addEventHandler("sami",root, 
function () 
    setPlayerTeam(source,S) 
    spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115 ) 
    giveWeapon ( source, 30, 9999,true ) 
    giveWeapon ( source, 22, 9999,true ) 
end) 

spawnPlayer بالخيارات الإضافية في setPlayerTeam تقدر تختصر

Optional Arguments

rotation: rotation of the player on spawn.

skinID: player's skin on spawn. Character Skins

interior: interior the player will spawn into. Interior IDs

dimension: The ID of the dimension that the player should be in.

theTeam: the team the player will join.

dimension و interior ادري بس لو حطيته لازم احط

يعني كذا

spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917,0,115,0,0,S ) 

Link to comment

وش المشكلة ؟

S = createTeam ("Gangs",255,0,0) 
addEvent("sami",true) 
addEventHandler("sami",root, 
function () 
    spawnPlayer ( source, -2439.216796875, 1554.5406494141, 2.1231455802917, 0, 115, 0, 0, S ) 
    giveWeapon ( source, 30, 9999,true ) 
    giveWeapon ( source, 22, 9999,true ) 
end) 

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