SoMoRay Posted March 8, 2013 Share Posted March 8, 2013 عامل لوحة شلون اخلي الفريقين ليهم سباون زر واحد Spawn ؟ Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 spawnPlayer عارف بس شلون اخلي الزر واحد سباون للفريقين Link to comment
iPrestege Posted March 8, 2013 Share Posted March 8, 2013 onClientGUIClick ?? وكيف فريقين يعني ذذ ~ Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 onClientGUIClick?? وكيف فريقين يعني ذذ ~ شفت العقرب و و الخ السبوان الي عندهم زر واحد يعمل سباون للفريقين Link to comment
кιηg-αвα∂у Posted March 8, 2013 Share Posted March 8, 2013 addEventHandler("onClientGUIClick", root, function() if ( getPlayerTeam == getTeamFromName ( "name" ) ) then spawnPlayer ( player, x, y, z, r, skin ) end end) Link to comment
iPrestege Posted March 8, 2013 Share 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 ) Link to comment
3NAD Posted March 8, 2013 Share Posted March 8, 2013 spawnPlayer ( thePlayer, x, y, z, rotation, skinID, interior, dimension, theTeam ) theTeam Link to comment
===|OSAMA|=== Posted March 8, 2013 Share 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 Link to comment
iPrestege Posted March 8, 2013 Share 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. Link to comment
3NAD Posted March 8, 2013 Share Posted March 8, 2013 ^ كان فوقي رد انحذف حاط setPlayerTeam spawnPlayer المفروض يختصر بـ وظيفة السباون Link to comment
iPrestege Posted March 8, 2013 Share Posted March 8, 2013 ^كان فوقي رد انحذف حاط setPlayerTeam spawnPlayer المفروض يختصر بـ وظيفة السباون أها فكرتك تقصدني ذذ Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 (edited) Done_ Edited March 8, 2013 by Guest Link to comment
кιηg-αвα∂у Posted March 8, 2013 Share Posted March 8, 2013 bindKey -- الأزرار arrow_r arrow_l createPed getElementModel setElementModel Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 شلون اسوي getElementModel setElementModel + شلون اخلي شخصية ترقص Link to comment
кιηg-αвα∂у Posted March 8, 2013 Share 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)]) -- يخليها ترقص Link to comment
iPrestege Posted March 8, 2013 Share Posted March 8, 2013 setElementModel(ped,id) pedSkin = getElementModel(ped) Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 شلون اسوي createPed مافهمتها ~~ Link to comment
iPrestege Posted March 8, 2013 Share Posted March 8, 2013 ped = createPed (id,x,y,z) يسوي شخص في مكان محدد #, Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 ped = createPed (id,x,y,z) يسوي شخص في مكان محدد #, طيب يعني اضع البيد في مكان او بعدين استخدم فكشن من الكيمره يخلي الكيمره على البيد وهو يرقص؟ Link to comment
SoMoRay Posted March 8, 2013 Author Share Posted March 8, 2013 setCameraMatrix ادري تعبتكم معي لاكن bindKey شلون اسويها arrow_r arrow_l مافهمت down up both Link to comment
iPrestege Posted March 8, 2013 Share 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 -- كل الثنين Link to comment
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