Wysłany: 2017-01-19, 15:39
Remix110
Pewna osóbka :3
Wiek: 40 Na forum: 3663 dni Posty: 291
Nick w MP: GoodNight
Piwa : 15
thx ale tego ju? nie trzeba Ps. a masz porz?dny poradnik do LUA wiesz wszytsko co i jak? XD
A i da si? napisa? na chacie Zostaniesz uleczony za 30 sekund i jak zrobi? ?eby czeka?o te 30 sekund zanim uleczy ?
Wysłany: 2017-01-19, 18:17
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Remix110 , Napisz to w dziale LUA.
Podpis
"amited" napisał/a :
Wysłany: 2017-01-29, 14:28
TheWejbik
Wiek: 36 Na forum: 3792 dni Posty: 7
Nick w MP: TheWejbik
Kod:
pickup2 = createPickup( 1130.25,-2031.19,69.01, 2, 38, 100, 9999 )
setElementDimension (pickup2, 5)
function pickupye2 (plr)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) then
giveWeapon ( source, 38, 9999 )
outputChatBox("Podnosisz miniguna!")
end
end
addEventHandler ( "onPickupHit", pickup2, pickupye2 )
Witam, potrzebuje pomocy przy przerobieniu tego ma?ego skryptu, ot?? chce zrobi? aby pickupa ( Miniguna ) mog?a podnosi? jedynie osoba z rang? 1,2,3 b?d? 4, lecz gdy uruchamiam zas?b pickupa mo?e podnie?? administrator jak i inny, zwyk?y gracz bez uprawnie? moderatora.
Wysłany: 2017-01-29, 14:33
Kibol1908.
Good Boy
Wiek: 27 Na forum: 4111 dni Posty: 69
Nick w MP: Hello_Boy
Piwa : 99
"TheWejbik" napisał/a : Kod:
pickup2 = createPickup( 1130.25,-2031.19,69.01, 2, 38, 100, 9999 )
setElementDimension (pickup2, 5)
function pickupye2 (plr)
if getAdmin(plr,4) or getAdmin(plr,3) or getAdmin(plr,2) then
giveWeapon ( source, 38, 9999 )
outputChatBox("Podnosisz miniguna!")
end
end
addEventHandler ( "onPickupHit", pickup2, pickupye2 )
Witam, potrzebuje pomocy przy przerobieniu tego ma?ego skryptu, ot?? chce zrobi? aby pickupa ( Miniguna ) mog?a podnosi? jedynie osoba z rang? 1,2,3 b?d? 4, lecz gdy uruchamiam zas?b pickupa mo?e podnie?? administrator jak i inny, zwyk?y gracz bez uprawnie? moderatora.
Sprobuj tak
pickup2 = createPickup ( 1130.25 ,- 2031.19 , 69.01 , 2 , 38 , 100 , 9999 )
setElementDimension ( pickup2 , 5 )
function pickupye2 ( plr )
if not getElementData ( plr , "ElementDataAdministracji" ) then return end
if getAdmin ( plr , 4 ) or getAdmin ( plr , 3 ) or getAdmin ( plr , 2 ) then
giveWeapon ( source , 38 , 9999 )
outputChatBox ( "Podnosisz miniguna!" )
end
end
addEventHandler ( "onPickupHit" , pickup2 , pickupye2 )
Wysłany: 2017-01-29, 14:56
TheWejbik
Wiek: 36 Na forum: 3792 dni Posty: 7
Nick w MP: TheWejbik
Niestety, nadal to samo. Gdy posiadam level admina np: 4, to wtedy wyskakuje mi chatbox z : Podnosisz miniguna i zostaje mi przyznany minigun gdy nie mam ustawionego tego lvl otrzymuje tylko miniguna bez tej wiadomo?ci, przeczuwam, ?e nale?y zmieni? to Kod: giveWeapon ( source, 38, 9999 )
Wysłany: 2017-02-01, 00:10
Pawel5321
Szkrypter
Wiek: 36 Na forum: 3809 dni Posty: 237
Nick w MP: Pawell
Piwa : 2315
TheWejbik ,
pickup2 = createPickup ( 1130.25 ,- 2031.19 , 69.01 , 2 , 38 , 100 , 9999 )
setElementDimension ( pickup2 , 5 )
function pickupye2 ( plr )
if not getElementData ( plr , "ElementDataAdministracji" ) then cancelEvent () end
if getAdmin ( plr , 4 ) or getAdmin ( plr , 3 ) or getAdmin ( plr , 2 ) then
giveWeapon ( source , 38 , 9999 )
outputChatBox ( "Podnosisz miniguna!" )
end
end
addEventHandler ( "onPickupHit" , pickup2 , pickupye2 )
Wysłany: 2017-02-01, 18:29
Boski1234567891
Młody Skrypter
Wiek: 31 Na forum: 3444 dni Posty: 89
Nick w MP: Medyk312
Piwa : 1965
Prosi? bym o przerobienie tego skryptu zeby logo serwera bylo w lewym dolnym rogu nie w prawym
--[[ Skrypt pisany na rzecz serwera Your Town Zezwalam na edytacje oraz u ?? ywanie na serwerach zakaz zmazywania tej notatki zmazanie jej b ?& #8482;dzi?™ karane odpowiedzialno?›ci?… karn?… b?…d?? problemami serwerowymi
--]]
screenW , screenH = guiGetScreenSize ()
function napis ()
dxDrawImage ( 1176 , 663 , 215 , 83 , ":PL-grafika/logo.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addEventHandler ( "onClientRender" , getRootElement (), napis )
Wysłany: 2017-02-01, 21:03
Pawel5321
Szkrypter
Wiek: 36 Na forum: 3809 dni Posty: 237
Nick w MP: Pawell
Piwa : 2315
Boski1234567891 ,
screenW , screenH = guiGetScreenSize ()
function napis ()
dxDrawImage ( 0 , 663 , 215 , 83 , ":PL-grafika/logo.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addEventHandler ( "onClientRender" , getRootElement (), napis )
Wysłany: 2017-02-02, 15:56
Boski1234567891
Młody Skrypter
Wiek: 31 Na forum: 3444 dni Posty: 89
Nick w MP: Medyk312
Piwa : 1965
Witam prosi? bym tez jeszcze o przerobienie tego skryptu duty admin zeby po wpisaniu komendy /zpj nick czas jednostka powod nie mozna bylo wsiadac do pojazdu jak narazie mozna dodalem wszysto do acl ale i tak nie dzia?a
http://www15.zippyshare.com/v/GJMnqQXD/file.html
Wysłany: 2017-02-03, 19:30
MrMrok [Usunięty ]
Boski1234567891 , a czy masz modu?y wgrane ? bp je?li nie masz to nie zadzia?a ci zabieranie prawka
Wysłany: 2017-02-03, 20:47
Boski1234567891
Młody Skrypter
Wiek: 31 Na forum: 3444 dni Posty: 89
Nick w MP: Medyk312
Piwa : 1965
Wysłany: 2017-02-05, 13:38
Michaler
Wiek: 26 Na forum: 3798 dni Posty: 77
Piwa : 1009
Prosz? o przerobienie/utworzenie event?w w skrypcie na suszark? SAPD tak by by?y po stronie serwera
"onWystawMandat_Suszarka"
local resourceRoot = getResourceRootElement ( getThisResource ())
local screenWidth , screenHeight = guiGetScreenSize ()
vehicle = nil
najwyzsza = 0
dop = "n/a"
rejstrator = false
moznamierzyc = true
function seter ()
moznamierzyc = true
tekst = "Oczekuje na pomiar..."
end
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function ()
txd = engineLoadTXD ( "files/tec9.txd" )
engineImportTXD ( txd , 372 )
dff = engineLoadDFF ( "files/tec9.dff" , 372 )
engineReplaceModel ( dff , 372 )
end )
function targetingActivated ( target )
local wep = getPedWeapon ( getLocalPlayer ())
if wep == 32 then
if getElementData ( source , "player:duty" ) and getElementData ( source , "player:duty" ) == "SAPD" then
if getPedControlState ( getLocalPlayer (), "aim_weapon" ) then
if isPedDucked ( getLocalPlayer () ) then
sx , sy , sz = getElementVelocity ( getLocalPlayer () )
if math . floor (( sx ^ 2 + sy ^ 2 + sz ^ 2 )^( 0.5 ) * 180 )< 3 then
if target then
if getElementType ( target )== "vehicle" then
if vehicle ~= target then najwyzsza = 0 end
vehicle = target
rejstrator = true
end
end
end
end
end
end
end
end
addEventHandler ( "onClientPlayerTarget" , getRootElement (), targetingActivated )
function najwyszapr ()
if najwyzsza > 0 then
mierzony = getVehicleController ( vehicle )
if mierzony then
triggerServerEvent ( "onPokazChatMierzenie" , getLocalPlayer (), "*Policjant zmierzy? ci pr?dko??: " .. najwyzsza .. "" , mierzony )
if ( dop ~= "n/a" ) and ( tonumber ( dop ))+ 10 < najwyzsza then
ileprzekroczyl = najwyzsza - dop
kwota =( math . floor ( ileprzekroczyl * 10 )/ 2 )
score = 0
triggerServerEvent ( "onWystawMandat_Suszarka" , getLocalPlayer (), getElementData ( mierzony , "ID-Player" ), "Radar policyjny" , getPlayerName ( getLocalPlayer ()), getElementData ( getLocalPlayer (), "ID-Player" ) or 0 , "Pr?dko?? " .. najwyzsza .. "/" .. dop .. "kmh" , kwota , score )
triggerServerEvent ( "onPokazChatMierzenie" , getLocalPlayer (), "*Przekroczy?e? dopuszaln? pr?dko?? i otrzyma?e? mandat " .. najwyzsza .. "/" .. dop .. "kmh od [" .. getPlayerName ( getLocalPlayer ()).. "]" , mierzony )
outputChatBox ( "Przekroczona pr?dko??: " .. najwyzsza .. "/" .. dop .. "kmh [" .. getPlayerName ( mierzony ).. "]" )
moznamierzyc = false
tekst = "Czekaj, Synchronizacja"
setTimer ( seter , 4000 , 1 )
end
outputChatBox ( "*Najwy?sza zarejstrowana pr?dko?? gracza [" .. getPlayerName ( mierzony ).. "]: " .. najwyzsza )
else
outputChatBox ( "*Najwy?sza zarejstrowana pr?dko??: " .. najwyzsza )
end
najwyzsza = 0
vehicle = nil
rejstrator = false
end
end
function createText ( )
if getPedControlState ( getLocalPlayer (), "aim_weapon" ) and isPedDucked ( getLocalPlayer () ) then
sx , sy , sz = getElementVelocity ( getLocalPlayer () )
if math . floor (( sx ^ 2 + sy ^ 2 + sz ^ 2 )^( 0.5 ) * 180 )< 1 then
if vehicle then
--if ( isElementOnScreen ( vehicle ) ) then
if getPedTarget ( getLocalPlayer ()) == vehicle then
speedx , speedy , speedz = getElementVelocity ( vehicle )
actualspeed = ( speedx ^ 2 + speedy ^ 2 + speedz ^ 2 )^( 0.5 )
predkosc = math . floor ( actualspeed * 180 )
if predkosc > najwyzsza then najwyzsza = predkosc end
dxDrawText ( predkosc .. "km/h" , screenWidth / 2 , screenHeight / 2 , screenWidth / 2 , screenHeight / 2 , tocolor ( 0 , 0 , 0 , 255 ), 1.01 , "pricedown" )
dxDrawText ( predkosc .. "km/h" , screenWidth / 2 , screenHeight / 2 , screenWidth / 2 , screenHeight / 2 , tocolor ( 255 , 255 , 255 , 255 ), 1 , "pricedown" )
end
end
end
else
if rejstrator then najwyszapr () end
end
end
local screenW , screenH = guiGetScreenSize ()
tekst = "Oczekuje na pomiar..."
local screenW , screenH = guiGetScreenSize ()
function render_pda ()
dxDrawImage ( screenW - 307 , ( screenH - 236 ), 307 , 236 , "files/pda.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawText ( "" , 1141 , 867 , 1141 , 867 , tocolor ( 255 , 255 , 255 , 255 ), 1 , "default" , "left" , "top" , false , false , false , false , false )
dxDrawText ( najwyzsza .. " / " .. dop .. "" , screenW - 213 - 45 , ( screenH - 30 ) - 70 , ( screenW - 213 - 45 ) + 213 , ( ( screenH - 30 ) - 70 ) + 30 , tocolor ( 0 , 0 , 0 , 255 ), 1.3 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawText ( "Najwy?sza pr?dko??[kmh]:" , screenW - 211 - 45 , ( screenH - 19 ) - 95 , ( screenW - 211 - 45 ) + 211 , ( ( screenH - 19 ) - 95 ) + 19 , tocolor ( 0 , 0 , 0 , 255 ), 1 , "default" , "left" , "top" , false , false , false , false , false )
dxDrawText ( "Max dop. pr?dko??[kmh]: " .. dop , screenW - 211 - 45 , ( screenH - 19 ) - 160 , ( screenW - 211 - 45 ) + 211 , ( ( screenH - 19 ) - 160 ) + 19 , tocolor ( 0 , 0 , 0 , 255 ), 1 , "default" , "left" , "top" , false , false , false , false , false )
dxDrawText ( "Stan urz?dzenia:" , screenW - 211 - 45 , ( screenH - 19 ) - 140 , ( screenW - 211 - 45 ) + 211 , ( ( screenH - 19 ) - 140 ) + 19 , tocolor ( 0 , 0 , 0 , 255 ), 1 , "default" , "left" , "top" , false , false , false , false , false )
dxDrawText ( tekst , screenW - 211 - 45 , ( screenH - 19 ) - 120 , ( screenW - 211 - 45 ) + 211 , ( ( screenH - 19 ) - 120 ) + 19 , tocolor ( 0 , 0 , 0 , 255 ), 1.3 , "default-bold" , "center" , "center" , false , false , false , false , false )
dxDrawText ( "Po??czenie: WiFI Radar Policja" , screenW - 285 - 10 , ( screenH - 24 ) - 200 , ( screenW - 285 - 10 ) + 285 , ( ( screenH - 24 ) - 200 ) + 24 , tocolor ( 0 , 0 , 0 , 255 ), 1 , "default-bold" , "center" , "center" , false , false , false , false , false )
end
function HandleTheRendering ( )
local wep = getPedWeapon ( getLocalPlayer ())
if wep == 32 then
if getElementData ( source , "player:duty" ) and getElementData ( source , "player:duty" ) == "SAPD" then
-- dxDrawText ( "Radar: #FF0000" .. dop .. "#0011FFkm/h\n" .. tekst , ( screenW - 516 ) / 2 , 73 , (( screenW - 516 ) / 2 ) + 516 , ( 73 ) + 73 , tocolor ( 0 , 17 , 255 , 255 ), 2 , "bankgothic" , "center" , "center" , false , false , true , true , false )
render_pda ()
end
if getPedControlState ( getLocalPlayer (), "aim_weapon" ) then
if not isPedDucked ( getLocalPlayer () ) then
setControlState ( "aim_weapon" , false )
outputChatBox ( "Aby mierzy? predkosc musisz kuca?" , 255 , 0 , 0 )
end
if not moznamierzyc then
setControlState ( "aim_weapon" , false )
outputChatBox ( "Odczekaj 2 sekundy od ostatniego mierzenia" , 255 , 0 , 0 )
end
if not getElementData ( source , "player:duty" ) == "SAPD" then
outputChatBox ( "Radar dost?pny tylko dla pracownik?w Policji!" , 255 , 0 , 0 )
setControlState ( "aim_weapon" , false )
end
end
end
end
function disableTec ( prevSlot , newSlot )
if getPedWeapon ( getLocalPlayer (), newSlot ) == 32 then
toggleControl ( "fire" , false )
toggleControl ( "playerlist" , false )
toggleControl ( "action" , false )
addEventHandler ( "onClientRender" , root , HandleTheRendering )
addEventHandler ( "onClientRender" , root , createText )
else
toggleControl ( "fire" , true )
toggleControl ( "playerlist" , true )
toggleControl ( "action" , true )
removeEventHandler ( "onClientRender" , root , HandleTheRendering )
removeEventHandler ( "onClientRender" , root , createText )
end
end
addEventHandler ( "onClientPlayerWeaponSwitch" , getRootElement (), disableTec )
function setDopPredkosc ( cmd , ile )
if tonumber ( ile )> 49 and tonumber ( ile )<= 300 then
dop = math . floor ( tonumber ( ile ))
else
outputChatBox ( "Ustaw poprawn? warto??!" , 255 , 0 , 0 )
end
end
addCommandHandler ( "predkosc" , setDopPredkosc )
Wysłany: 2017-02-07, 07:02
cinek339
Wiek: 35 Na forum: 4479 dni Posty: 14
Witam wszystkich mam pro?b? czy m?g?b kto? pom?c mi przerobi? skrypt chodzi mi o to aby panel dopasowywa? sie do ka?dej rozdzielczo?ci plus jak wejd? w marker to ?eby sie otwiera? z gui bym o ogarn? ale z dxdraw ju? jest gorzej bed? wdzi?czny za pomoc.
Kod: gui1 = guiCreateButton(179, 480, 456, 51, "Wybierz.", false)
guiSetProperty(gui1, "NormalTextColour", "FE00FD11")
guiSetVisible(gui1, false)
gui2 = guiCreateButton(975, 479, 456, 51, "Wybierz.", false)
guiSetProperty(gui2, "NormalTextColour", "FE00FD11")
guiSetVisible(gui2, false)
gui3 = guiCreateButton(975, 936, 456, 51, "Wybierz.", false)
guiSetProperty(gui3, "NormalTextColour", "FE00FD11")
guiSetVisible(gui3, false)
gui4 = guiCreateButton(173, 940, 456, 51, "Wybierz.", false)
guiSetProperty(gui4, "NormalTextColour", "FE00FD11")
guiSetVisible(gui4, false)
gui5 = guiCreateButton(575, 1081, 456, 51, "Zamknij panel.", false)
guiSetProperty(gui5, "NormalTextColour", "FEFD0005")
guiSetVisible(gui5, false)
gui6 = guiCreateButton(125, 481, 44, 50, "?", false)
guiSetFont(gui6, "sa-header")
guiSetProperty(gui6, "NormalTextColour", "FEFDEE00")
guiSetVisible(gui6, false)
gui7 = guiCreateButton(1441, 479, 44, 50, "?", false)
guiSetFont(gui7, "sa-header")
guiSetProperty(gui7, "NormalTextColour", "FEFDEE00")
guiSetVisible(gui7, false)
gui8 = guiCreateButton(1441, 936, 44, 50, "?", false)
guiSetFont(gui8, "sa-header")
guiSetProperty(gui8, "NormalTextColour", "FEFDEE00")
guiSetVisible(gui8, false)
gui9 = guiCreateButton(119, 940, 44, 50, "?", false)
guiSetFont(gui9, "sa-header")
guiSetProperty(gui9, "NormalTextColour", "FEFDEE00")
guiSetVisible(gui9, false)
addEventHandler("onClientRender", root,
function()
dxDrawRectangle(69, 35, 1466, 1114, tocolor(0, 0, 0, 201), false)
dxDrawRectangle(63, 30, 1472, 66, tocolor(50, 3, 251, 153), false)
dxDrawText("Praca dorywcza.", 450, 45, 1132, 86, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawImage(903, 158, 600, 304, ":zdj/tartak2.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(115, 164, 602, 296, ":zdj/tartak1.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(903, 608, 601, 302, ":zdj/przerobka-drzewa.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(115, 612, 602, 303, ":zdj/sadzenie-drzew.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawRectangle(905, 564, 599, 44, tocolor(50, 3, 251, 153), false)
dxDrawRectangle(118, 564, 599, 44, tocolor(50, 3, 251, 153), false)
dxDrawRectangle(903, 114, 599, 44, tocolor(50, 3, 251, 153), false)
dxDrawRectangle(118, 120, 599, 44, tocolor(50, 3, 251, 153), false)
dxDrawText("Sadzenie drzew.", 116, 565, 717, 608, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Przerobka drzewa.", 902, 565, 1503, 608, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Wycinka drzewa.", 903, 114, 1504, 157, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawText("Wywoz drzewa.", 115, 120, 716, 163, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false)
dxDrawLine(80, 547, 1522, 547, tocolor(255, 255, 255, 255), 1, false)
dxDrawLine(799, 110, 798, 1064, tocolor(255, 255, 255, 255), 1, false)
end
)
Wysłany: 2017-02-11, 13:36
AssasiPlayGames
Wiek: 22 Na forum: 3757 dni Posty: 176
Nick w MP: NiFeKpL
Piwa : 909
Wysłany: 2017-02-13, 14:42
kamilryb1
LUA
Wiek: 21 Na forum: 4266 dni Posty: 146
Piwa : 319
Prosz? o przerobienie tych 2 skrypt?w.
======
W skrypcie "Montaz" prosz? o przerobienie w s.lua, ?e jak si? go u?yje to daje setElementData na pojazd ta setelementdata ma si? nazywa? "mk2"
W skrypcie "Interaktywne-MK" prosz? o przerobienie, ?eby si? zapisywa?y te punkty MK. Oraz, ?eby si? pojawia?y temu graczowi, co stoi, a nie wszystkim z id skina 50
====
Za przerobienie skrypt?w gwarantowane piwo, respekt, oraz mo?liwo?? dodania autora do skryptu.
===
LINK: http://www46.zippyshare.com/v/lckkjENZ/file.html
==========
Tagi: prośby :: przerobienie :: skryptu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: