-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
As Solidsnake14 said "The client side givePlayerMoney has no player argument" This: givePlayerMoney(pessoa, tonumber(arma)) should be: givePlayerMoney(tonumber(arma)) Also outputChatBox Client Side has no player argument. so This: outputChatBox("Arma: "..arma.." Munição:"..municao..".", pessoa) should be: outputChatBox("Arma: "..arma.." Munição:"..municao..".") and line 55 not needed, remove it.
-
1- It will be the same player, your code is fine. 2- The weapon parameter can be the weapon id or death reason id You can find death reasons here https://wiki.multitheftauto.com/wiki/Death_Reasons so your code should be: function playerWasted ( ammo, attacker, weapon, bodypart ) if (weapon == 53) then --- if the player drowned outputChatBox("You are drowned", source) end end addEventHandler("onPlayerWasted", getRootElement(), playerWasted)
-
This link still working http://www.filefront.com/17412771/BaseMode.zip i have reupload it at mediafire http://www.mediafire.com/?4em45kgb5nd98rl
-
thevehicle is not define. actually i don't understand why you have it in your code local id = getElementModel(thevehicle) You should get the vehicle id from its name using this: https://wiki.multitheftauto.com/wiki/GetVehicleModelFromName also this is wrong warpPedIntoVehicle(source, createVehicle)
-
ذا السطر مدري وش يبي بالكود if ( bodypart == 3 or 4 or 5 or 6 or 7 or 8 or 9 ) then و مع ذالك هو خطأ المفروض يكون كذا if ( bodypart == 3 or bodypart == 4 or bodypart == 5 or bodypart == 6 or bodypart == 7 or bodypart == 8 or bodypart == 9 ) then
-
https://wiki.multitheftauto.com/wiki/OnClientPlayerDamage
-
Template تم أصلاح الأخطاء الي بـ الـ
-
100% الخطأ بالكلينت أكيد احتمال الزر خطأ تأكد من أسم الزر
-
ايش الي ما يشتغل فيه؟ يجي الكلام has bought في الشات؟ في أي خطأ بـ /debugscript 3?
-
https://wiki.multitheftauto.com/wiki/GuiGridListSetItemColor
-
addEvent("sss",true) addEventHandler("sss", root, function() local PlayerMoney = getPlayerMoney(source) if (PlayerMoney >= 1500) then takePlayerMoney(source,1500) setPedStat(source, 24, 999) setElementHealth(source,200) outputChatBox("has bought", root, 255, 0, 0, true) else outputChatBox("you Don't have enough Money", source, 255, 0, 0, true) end end) و الليزر مثل ما قلت
-
1- (200) الدم الطويل https://wiki.multitheftauto.com/wiki/SetPedStat 2- (الليزر (يمكن بعد 3-5 سنوات تعرف تسويه https://wiki.multitheftauto.com/wiki/DxDrawLine3D 3- الدخان https://wiki.multitheftauto.com/wiki/CreateObject 2780 الآيد حق الدخان
-
i don't know if it Base or base, so try base if not work. addEvent('NRG', true) addEventHandler('NRG', root, function() if not getMapName():find("Base") then outputChatBox("You can Buy only in Base..", source, 255,0,0) return end if (getPlayerMoney(source)) >= (1500) then takePlayerMoney(source, tonumber(1500)) local x, y, z = getElementPosition(source) local vehicle = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle) end end)
-
https://wiki.multitheftauto.com/wiki/SetClipboard
-
انا ابيه مثل الشوب مثلا يضغط على زر تجيه السياره الكودين الي أنا حطيتهم هم الي تحتاجهم و طبعاً لما يضغط على الزر لازم تسوي ترقير للسيرفر و تستخدم الكود الأول عشان تطلع السيارة و تستخدم الكود الثاني عشان تركب اللاعب داخل السيارة
-
سطر 34 unction ToggletaplMenu() f ناقص function ToggletaplMenu()
-
https://wiki.multitheftauto.com/wiki/CreateVehicle https://wiki.multitheftauto.com/wiki/WarpPedIntoVehicle
-
https://wiki.multitheftauto.com/wiki/GuiSetFont
-
GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible(GUIEditor_Window[1] ,false) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],1) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.5) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.2) setElementData(localPlayer, "Kills", 0) setElementData(localPlayer, "Deaths", 0) addEventHandler("onClientPlayerWasted",root, function(killer) if killer then local k = getElementData(killer,"Kills") or 0 setElementData(killer, "Kills",k+1) end local d = getElementData(source, "Deaths") or 0 setElementData(source, "Deaths",d+1) end) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills") or 0, false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths") or 0, false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey("F1" , "down", function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end)
-
أرجع أقرأ الموضوع الي أنت نسخت منه الكود viewtopic.php?f=119&t=47064#p468595 و لاحظ أن المود ذا شغال مع البيس مود فقط
-
GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window = {} GUIEditor_Grid = {} local x,y = guiGetScreenSize() GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) guiSetVisible(GUIEditor_Window[1] ,false) GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.6) guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.3) guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.3) function U() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths"), false, false) if i == 20 then break end end end addEventHandler("onClientResourceStart",resourceRoot,U) addEventHandler("onClientPlayerWasted",root,U) bindKey ( "F1" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end )
-
addEventHandler("onClientResourceStart",resourceRoot,Ul) addEventHandler("onClientResourceStart",resourceRoot,U)
-
http://www.mediafire.com/?vp5g6hf2a8wec13
-
https://wiki.multitheftauto.com/wiki/OnClientPlayerWasted
