-
Posts
740 -
Joined
-
Last visited
Everything posted by al-Kobra
-
بدل كود فتح اللوحة بهذا : Maarker = createMarker ( .... ) --حط احداثيات الماركر addEventHandler ( "onClientMarkerHit", Maarker, function ( hitPlayer ) if ( getElementData ( source , "gang" ) == "اسم القروب" ) then if getElementType ( hitPlayer ) == "player" then guiSetVisible ( اسم اللوحة, true ) showCursor ( true ) end end ) addEventHandler ( "onClientMarkerHit", Maarker, function ( leftPlayer ) if getElementType ( liftPlayer ) == "player" then guiSetVisible ( اسم اللوحة, false ) showCursor ( false ) end end )
-
Pos = { x[1] = {1230.54}, x[2] = {530.54}, y[1] = {-1621.54}, y[2] = {-1421.54}, z[1] = {13.54}, z[2] = {13.54}, } addEventHandler ( "onClientGUIClick", اسم البوتون, function ( ) if (source == اسم البوتون) then setElementPosition ( source, Pos.x[1], Pos.y[1], Pos.z[1] ) elseif (source == اسم البوتون) then setElementPosition ( source, Pos.x[2], Pos.y[2], Pos.z[2] ) end end ) اتوقع كذا + اذا في اخطاء عدلوها ,, لأني مسوي الكود بالتلفون =D
-
Event = 'onClientMarkerHit' --اذا دخل الماركر guiSetVisible --يظهر اللوحة getElementData --هنا عشان يتحقق من اسم القروب واذا ما عرفت قول
-
الاعتقال تبيه من يضرب المجرم يروح السجن ؟؟ لو تبيه يمشي وراه ؟
-
بس بدلت onPlayerWasted الى onPlayerDamage
-
اذا كان قصدك مثل الا انا قلته ,, استخدم ذا : marker = createMarker (.....) local id = ايدي السلاح local ammo = الطلقات addEventHandler,("onPlayerMarkerHit", getRootElement(),marker, function () giveWeapon (source,id,ammo) outputChatBox ( "تم دخول لاعب "..(getPlayerName(source).." واعطائه سلاح", source, 255, 255, 255, true ) end end ) اتوقع كذا
-
عاافس ام ام الكود وش تبغي تسوي بالضبط ؟؟ تبغي اذا واحد دخل الماركر يعطيه سلاح ؟؟
-
createTeam('Kidnapping',255,0,0) local timer = {} local timerS = {} addEventHandler( 'onPlayerDamage',root,function(attacker) if ( attacker ) and ( attacker ~= source ) and ( getElementType(attacker) == 'player' ) then if ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == 'Kidnapping' ) then createBlipAttachedTo(attacker,33) outputChatBox('1000 $ لقد حصلت على',attacker,255,255,0,true) givePlayerMoney(attacker,1000) if not timer[source] or not timerS[source] then timer[source] = setTimer(function() spawnPlayer(source, 812.29241943359,-1100.7707519531,25.786060333252, 0,math.random (0,288)) setElementFrozen(source,true) outputChatBox('بخطفك [ '..getPlayerName(attacker).. ' ] قام اللاعب',source,255,255,0,true) end,2000,1,source) timerS[source] = setTimer(function() setElementFrozen(source,false) setElementPosition(source,896.5, -1114.9, 24.2) outputChatBox('انت الآن حر',source) end,300000,1,source) end end end end ) addEvent( 'SetTeam', true ) addEventHandler( 'SetTeam', root,function() setPlayerTeam ( source, getTeamFromName('Kidnapping' )) end ) جربه
-
create it with gui editor script
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=7613 --هذا مود الكتابة الا فوق البيد createPed --انشاء بيد createMarker --تنشئ ماركر وتخليه مختفي Event = 'onClientMarkerHit' guiSetVisible Event = 'onClientGUIClick' triggerServerEvent giveWeapon takePlayerMoney
-
فراغ وش ؟؟ وش edit ؟؟ زر يعني ؟ Edit = guiCreateEdit Button = guiCreateButton i think : onClientGUIClick --event guiGridListGetSelectedItem guiGetText triggerServerEvent getPlayerFromName
-
فراغ وش ؟؟ وش edit ؟؟ زر يعني ؟
-
https://community.multitheftauto.com/ind ... ls&id=8123 "-_-
-
جرب ذا الرابط
-
الاحتلال الا عطيتك اياه غير الا في موضوعك
-
وش الا مو شغال ؟
-
بدل getTeamFromName الى getElementData
