X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
Nice Man thanks it's well take long to for me to finsh it
-
so i Tired make it and he take it just like that tha'ts not fair !
-
Hey That's My Code ! why did you steal it ! wtf noob.
-
function createAdminTeamOnStart () AdminTeam = createTeam ( "Admin", 0, 255, 0 )-- create a new team and named it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if hasObjectPermissionTo(source,"general.adminpanel",false) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team setElementModel(source, 20) --- 20 رقم الشخصية outputChatBox("Admin: "..getPlayerName(source).." has join the server",root,255,255,0) end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler
-
yes disable all modifications of weapons / cars / skins if it modificated then kick the player .
-
Hi all i want to Make a original table with vehicles and skins and weapons if the vehicles and weapons and skins of player not original then Kick Him With Kick Msg i found this on Wiki how to edit it ? checkModels = { "m4.dff", "ak47.dff" } function handleOnPlayerModInfo ( filename, modList ) for _,mod in ipairs(modList) do -- Check each modified item for _,checkName in ipairs(checkModels) do if mod.name == checkName then -- See if modified item is in our check list outputChatBox ( "Not allowed to used modified weapons. Please restore " .. filename ) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo )
-
-
يرحم امك لاتخش البرمجه وانت ماتعرف تسوي ملف سكربت !
-
سو نافذه وحط الازرار .. الخ بعدين استخدم كود if source == 'اسم الزر هنا ' then guiSetText -- هنا يحط الفلوس على حسب الليبل اللي عندك ..
-
استخدم الكود اللي عطيتك اياه وخلاص
-
function master (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 31) then -- اذا كان السلاح = الرشاش createExplosion(hitX, hitY, hitZ, 12, true, false, true) -- صنع نار في مكان اطلاق الرصاصة end end addEventHandler("onClientPlayerWeaponFire", root, master) hitElement- نوع الشي يعني سيارة طيارة لاعب weapon -- السلاح ammo -- الطلق amooInClip -- عدد الطلقات اللتي في مشط السلاح hitx --- المكان x hity المكان y hitz -- المكان z
-
addEventHandler( 'onPlayerDamage' , root , function ( killer ) if ( killer ) and ( killer ~= source ) then killPed ( killer ) end end)
-
https://wiki.multitheftauto.com/wiki/Ser ... _functions
-
he mean shader like water.fx and else ..
-
sorry bug colors works on ClientSide example outputChatBox('Darken Happy Now ? ', source, 255,255,0)
-
try Make it unzip and add it to admin group and restart Your Server .
-
local root = getRootElement() function detect() giveWeapon ( source, 31, 1000 ) if ( weapon == 31 ) then killPed(source) outputChatBox("Don t use Super Weapon",source,255,255,0,true) end end addEventHandler("onPlayerWeaponSwitch", root, detect)
-
addEvent("infosend", true) addEventHandler("infosend", root, function(accName, atype, pname) aname = guiCreateLabel(11, 745, 96, 18, tostring(accName), true) admtype = guiCreateLabel(135, 745, 96, 18, tostring(atype), true) nick = guiCreateLabel(280, 745, 96, 18, tostring(pname), true) end ) addEventHandler("onClientRender", root, function() triggerServerEvent(source, "checkinfo", source) end )
-
every time i see posts saying source is not defined and when i defined it you say no need i dont get it ?
-
function check (thePlayer) -- you dont put (thePlayer) here .. local acc = getPlayerAccount(thePlayer) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("admin")) then atype = "admin" pname = getPlayerName(source) triggerClientEvent(source, "infosend", source, accName, atype, pname) --- and what is this ? wtf end end addEvent("checkinfo", true) addEventHandler("checkinfo", root, check)
-
you can Use table.sort http://www.lua.org/manual/5.1/manual.ht ... table.sort
