SoMoRay Posted March 8, 2013 Posted March 8, 2013 عامل لوحة شلون اخلي الفريقين ليهم سباون زر واحد Spawn ؟
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 spawnPlayer عارف بس شلون اخلي الزر واحد سباون للفريقين
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 onClientGUIClick?? وكيف فريقين يعني ذذ ~ شفت العقرب و و الخ السبوان الي عندهم زر واحد يعمل سباون للفريقين
кιηg-αвα∂у Posted March 8, 2013 Posted March 8, 2013 addEventHandler("onClientGUIClick", root, function() if ( getPlayerTeam == getTeamFromName ( "name" ) ) then spawnPlayer ( player, x, y, z, r, skin ) end end)
iPrestege Posted March 8, 2013 Posted March 8, 2013 ^^ Client : addEventHandler("onClientGUIClick",button, function () triggerServerEvent("onTeamSpawn",localPlayer) end) Server : addEvent("onTeamSpawn",true) addEventHandler("onTeamSpawn",root, function () local team = getPlayerTeam (source) if ( team and getTeamName (team) == ("TEAM")) then spawnPlayer(source,x,y,z) end end )
3NAD Posted March 8, 2013 Posted March 8, 2013 spawnPlayer ( thePlayer, x, y, z, rotation, skinID, interior, dimension, theTeam ) theTeam
===|OSAMA|=== Posted March 8, 2013 Posted March 8, 2013 addEventHandler("onClientGUIClick", root, function() if ( getPlayerTeam == getTeamFromName ( "name" ) ) then spawnPlayer ( player, x, y, z, r, skin ) end end) ^ Wrong -_-" ! ==================== Event: "onClientGUIClick" createPed getElementModel setElementModel triggerServerEvent spawnPlayer
iPrestege Posted March 8, 2013 Posted March 8, 2013 spawnPlayer Required Arguments thePlayer: The player you want to spawn. x: The x co-ordinate to spawn the player at. y: The y co-ordinate to spawn the player at. z: The z co-ordinate to spawn the player at.
3NAD Posted March 8, 2013 Posted March 8, 2013 ^ كان فوقي رد انحذف حاط setPlayerTeam spawnPlayer المفروض يختصر بـ وظيفة السباون
iPrestege Posted March 8, 2013 Posted March 8, 2013 ^كان فوقي رد انحذف حاط setPlayerTeam spawnPlayer المفروض يختصر بـ وظيفة السباون أها فكرتك تقصدني ذذ
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 (edited) Done_ Edited March 8, 2013 by Guest
кιηg-αвα∂у Posted March 8, 2013 Posted March 8, 2013 bindKey -- الأزرار arrow_r arrow_l createPed getElementModel setElementModel
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 شلون اسوي getElementModel setElementModel + شلون اخلي شخصية ترقص
кιηg-αвα∂у Posted March 8, 2013 Posted March 8, 2013 Anims = {"dnce_M_b","DAN_Left_A","DAN_Down_A","DAN_Loop_A"} -- جدول الرقص setPedAnimation( ped, "DANCING", Anims[math.random(1,4)]) -- يخليها ترقص
iPrestege Posted March 8, 2013 Posted March 8, 2013 setElementModel(ped,id) pedSkin = getElementModel(ped)
iPrestege Posted March 8, 2013 Posted March 8, 2013 ped = createPed (id,x,y,z) يسوي شخص في مكان محدد #,
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 ped = createPed (id,x,y,z) يسوي شخص في مكان محدد #, طيب يعني اضع البيد في مكان او بعدين استخدم فكشن من الكيمره يخلي الكيمره على البيد وهو يرقص؟
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 setCameraMatrix ادري تعبتكم معي لاكن bindKey شلون اسويها arrow_r arrow_l مافهمت down up both
iPrestege Posted March 8, 2013 Posted March 8, 2013 keyState: A string that has one of the following values: -- حالة التبنيد ذذ "up": If the bound key should trigger the function when the key is released -- يوم يرفع "down": If the bound key should trigger the function when the key is pressed -- يوم يضغط "both": If the bound key should trigger the function when the key is pressed or released -- كل الثنين
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now