-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
طلب تصحيح كود عجيب - تــــم بفضل المبدع عنــآآد ^^
Tete omar replied to d43dr4's topic in Arabic / العربية
امم , مدري ليش من اول مرة ظهر حرب العصابات وسوو لشخص اسمه نصيف سيارة خاصة الكل يقلده :\ -
Then castillo's code is what you need.
-
But i guess it'll only 'godmode' for the admin who've typed this command , and i think he wants it for all admins.
-
Try that server local godModeState = false function enabled(player) local account=getAccountName(getPlayerAccount(player)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin")))then addEventHandler("onPlayerDamage", root, togdamage ) outputChatBox("God mode is now enabled",0,255,0) addCommandHandler("godmode",disabled) removeCommandHandler("godmode",enabled) godModeState = true end end addCommandHandler("godmode",enabled) function disabled(player) local account=getAccountName(getPlayerAccount(player)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin")))then removeEventHandler("onPlayerDamage", root, togdamage ) outputChatBox("God mode is now disabled",0,255,0) addCommandHandler("godmode",enabled) for i,v in ipairs(getElementsByType("player")) do removeElementData(v,"godMode") end godModeState = false end end function togdamage() local account=getAccountName(getPlayerAccount(source)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin")))then setElementData(source,"godMode","true") end end client addEventHandler("onClientPlayerDamage",localPlayer, function() if(getElementData(source,"godMode"))then cancelEvent() end end )
-
That's because it's not a player element who hit the marker?
-
@GhostXoP But the wiki tells you everything , it's an optional argument yes ...
-
what?
-
Maybe you meant this: ? getServerPassword if not , then explain better
-
There's no function called getAccountPassword because it's an illegal thing when you get the people account passwords. if you already know the account name and password then use: getAccount("name","password")
-
aa = guiCreateLabel(252,389,531,44,"Please wait until the download Resource",false) guiSetFont(aa,"sa-header") function changeLabelColor ( ) guiLabelSetColor ( aa, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) --- اللون end setTimer ( changeLabelColor, 1000, 0 ) addEventHandler( "onClientResourceStart", getRootElement( ), function() guiSetVisible(aa,false) --[[ انت مسوي هنا destroyElement يعني راح يمسح لك الفاريبل حق اليبل عشان تخفي النافذة استخدم guiSetVisible(aa,false) وعشان تظهرها استخدم guiSetVisible(aa,true) ]] end ) في ملف السيرفر انت مسوي fadeCamera(true) fadeCamera(false) انت تبي تسوي الكاميرا تصير سوداء , بعدين ترجع صح ؟ استخدم setTimer
-
oh sorry , i thought you were talking about getTeamColor , sorry i forgot that
-
getTeamColor Returns 3 integers representing the red, green, and blue color components of the team if it's valid, false otherwise.
-
use: math.random(1,90)
-
addEventHandler("onMarkerHit",topdeck, function( thePlayer ) if ( getElementType(thePlayer) == "player" ) then local nR, nG, nB = getTeamColor( getPlayerTeam( thePlayer ) ) setMarkerColor( source, nR, nG, nB ) end end ) btw, there's no 'alpha' return in getTeamColor function
-
setElementDimension And setElementPosition With playSound3D
Tete omar replied to micheal1230's topic in Scripting
Then he can use onClientResourceStart instead -
لان اف 1 هي الفري روم وهو ريسورس افتراضي للام تي اي كل الريسورسات الافتراضية مثل scoreboard freeroam play الخ .. تشتغل أول شي أو استخدم onResourcePreStart يعني قبل ما الريسورس يشتغل .. مثال addEventHandler("onResourcePreStart",resourceRoot, function(res) outputChatBox("يتم الآن تحميل " .. getResourceName(res)) end )
-
:\ المودات كلها تتحمل عند اللاعب وتشتغل في مرة وحدة في نفس الوقت
-
اضن هذا اللي كنت ابي اقوله وين createObject ؟؟؟
-
You can learn tables tutorial here http://lua-users.org/wiki/TablesTutorial btw , i learned tables tutorial from here ^ and i tested the examples with batbot on IRC.
-
setElementDimension And setElementPosition With playSound3D
Tete omar replied to micheal1230's topic in Scripting
it's so simple server addEventHandler("onPlayerJoin",root, function() triggerClientEvent(source,"newPlayer",source) end ) client addEvent("newPlayer",true) addEventHandler("newPlayer",localPlayer, function() playSound("vcm.mp3") end ) just try that -
Read this https://wiki.multitheftauto.com/wiki/Scr ... troduction anything hard you face , then post it and we'll help you.
-
Explain better
-
اذا كان عندك نسخة غير مشفرة , يمديك تفتح تشفيره
-
العفو بس نصيحة مني لك استخدم guiGetScreenSize عششان تحدد انواع الشاشات واستخدم onPlayerJoin مو onClientPlayerJoin و onPlayerQuit مو onClientPlayerQuit واستخدم triggerServerEvent عشان ترسل للسيرفر و triggerClientEvent عشان ترسل للكلنت اللي انت مسويه ذا ماراح يضبط مع كل اللاعبين اذا كنت تبي الليبل تظهر لكل اللاعبين >>