-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
function Quit () local acc = getPlayerAccount ( source ) local mon = getPlayerMoney ( source ) if ( mon > 0 ) then if not ( isGuestAccount ( acc ) ) then setAccountData ( acc, "MoneyPlayer", mon ) end end end addEventHandler ( "onPlayerQuit", root, Quit ) function Join ( _, acc ) if ( acc ) local mon = getAccountData ( acc, "MoneyPlayer" ) if ( mon ) then setPlayerMoney ( source, mon ) end end end addEventHandler ( "onPlayerJoin", root, Join )
-
هذي نفسها نفس اي حرف او كلمة + يستخدمونها عشان يخطرون الاشياء
-
setAccountData يعطي الاعب داتا getAccountData يجيب داتا الاعب
-
كيف اجل ؟ يمكن واحد يكتب وبس يطلع الكلمة صح ويعطيه رتبة
-
addCommandHandler isGuestAccount getPlayerSerial aclGetGroup aclGroupAddObject هذا يتحقق ان الي كتب الامر عنده سريال معين
-
الي فهمتهه انك تبي تلغم السكربت ؟
-
على اي شي تحدده يعني مثل getPlayerAccount getPlayerSerial
-
Server : addEventHandler('onPlayerDamage', root, function (attacker) if (attacker and attacker ~= source and getElementType (attacker) == 'player') then triggerClientEvent (source, 'PlayerSOUND', source) end end) Client : addEvent ('PlayerSOUND', true) addEventHandler ('PlayerSOUND', root, function () playSound ('hitmarker-sound.wav') end)
-
ولا تنسى تسوي تحقق اذا كانت الساعة 23 timee = 60 if (rt.hour == 23) then setTimer (function () timehours = rt.hour end, timee * 10000, 1) اتوقع كذا يصير ساعة ^ المهم هذا التحقق يعني يسوي تايمر اذا وصل 23 ساعة يسوي تايمر ساعة واحدة عشان اذا وصل 24 رد ينعاد الوقت من البداية ومايصير خطأ ادري تلخبط مخك ^ يعني اذا وصل 23 ساعة يسوي تايمر لين مايوصل 24 ساعة (يوم واحد) عشان يعيد التايمر من جديد و مايبقى المتغير timehours 11 ساعة
-
ايه فيه تقدر تسوي تحقق local rt = getRealTime () local screenWidth, screenHeight = guiGetScreenSize ( ) local timehours = rt.hour if (rt.hour == 13) then timehours = 1 elseif (rt.hour == 14) then timehours = 2 elseif (rt.hour == 15) then timehours = 3 elseif (rt.hour == 16) then timehours = 4 elseif (rt.hour == 17) then timehours = 5 elseif (rt.hour == 18) then timehours = 6 elseif (rt.hour == 19) then timehours = 7 elseif (rt.hour == 20) then timehours = 8 elseif (rt.hour == 21) then timehours = 9 elseif (rt.hour == 22) then timehours = 10 elseif (rt.hour == 23) then timehours = 11 end dxDrawText ( tonumber (timehours) , 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) end طبعا الdrawtext جايبه من الويكي هههه
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
Rockyz replied to TAPL's topic in الاستضافات
الحين ذة رابط المنتدى مالكم ولا وش ؟ ^ -
اعمل نفسك ميت اعمل نفسك ميت
-
addCommandHandler ("maintainceban", function (plr) for _, v in ipairs (getElementsByType ("player")) do if (plr and plr ~= v) then banPlayer (v, false, false, true, root, "banned for maintaince") end end end)
-
slow or fast fast or slow slow or run fast run fast or run slow run slow or run very slow run very slow or run very fast ?
-
في له شرح ع اليوتيوب + فيه عيوب انه يطفي كل ساعة اتوقع
-
addCommandHandler("blur", function ( plr, cmd, level ) blur = tonumber(level) if not ( blur or blur > 255 or blur < 0 ) then outputChatBox ( "Enter a value between 0 - 255.", plr, 255, 255, 255, true ) else setPlayerBlurLevel ( plr, blur ) outputChatBox ( "Blur level set to: " .. blur, plr, 255, 0, 0, true ) end end
