Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-09-06, 10:53


Mateusz512







Wiek: 27
Na forum: 4511 dni
Posty: 44



Respekt: 50

Witam. Chodzi o to aby przerobi? ten kod tak ?eby nie dzia?a? z gamemodem tylko jako skrypt na serwerze i Enter nie dzia?a aby zatrzyma? animacj?. Bardzo prosz? o pomoc.

Skrypt: http://hostuje.net/file.p...696188d53ccaada

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-06, 10:55


|Mlody|

Szatan ponad Szatana






Wiek: 30
Na forum: 4375 dni
Posty: 60
Nick w MP: Akiver

Piwa: 205

Respekt: 52,5

"Mateusz512" napisał/a:

Witam. Chodzi o to aby przerobi? ten kod tak ?eby nie dzia?a? z gamemodem tylko jako skrypt na serwerze i Enter nie dzia?a aby zatrzyma? animacj?. Bardzo prosz? o pomoc.

Skrypt: http://hostuje.net/file.p...696188d53ccaada


Link nie dzia?a..

Podpis

Fast Life RPG |GTA V - Misje, napady na banki, wyścigi i wiele innych atrakcji|NFS - Stwórz swoją anarchię, zostań królem wyścigów, zdobywaj osiągnięcia.. Fast Life RPG - 20%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-06, 11:28


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Mateusz512, jak widz? to skrypt z LSS-RP(MTA-XyzzyRP) nie b?d? tego edytowa?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-06, 16:41


Retro99







Wiek: 27
Na forum: 4472 dni
Posty: 20



Respekt: 50

Witam prosz? o przerobienie skryptu,poniewa? pr?bowa?em sam kilka razy i nie umiem.Jest to skrypt na prac? taks?wkarza wi?kszo?? edytowa?em samemu,ale nie umiem ustawi? ?eby za kurs dostawa? 10$,a nie 231$ i ?eby nie zmienia?o skina po rozpocz?ciu pracy.Oto kod:



Kod:

local pickups = {
[1]={ -202.37744140625,1036.7016601563,19.7421875 },
}

local dropoffss = {
[1]={ -305.75393676758,829.33837890625,13.192380905151 },
}



local pedCus = {
[1]={ 9 },
[2]={ 10 },
[3]={ 14 },
[4]={ 15 },
[5]={ 37 }
}





Teame = createTeam("Taxi", 0, 255, 0)



taxiTeams = { [Teame] = true }
taxiVehs = { [420] = true }

function teamSet ( )
local team = getTeamFromName ( "Taxi" )
if team then
setPlayerTeam ( source, team )
setPlayerNametagColor ( source, 0, 255, 0 )
setElementModel(source, 182)
createVehicle(420, -204.10664367676,1220.8515625,19.7421875)
outputChatBox("Zatrudni?e? si? jako taks?wkarz!", thePlayer)
else
local teamw = getTeamFromName ( "Taxi" )
if teamw then
cancelEvent()
outputChatBox("Ju? pracujesz jako taks?wkarz.", source)
end
end
end
addEvent ( "sTeame", true)
addEventHandler ( "sTeame", root, teamSet )


function enterVehicle ( thePlayer, seat, jacked ) -- when a player enters a vehicle
if getElementType ( thePlayer ) == "player" then
if ( taxiVehs[getElementModel ( source )] ) and ( not taxiTeams[getPlayerTeam( thePlayer )] ) then -- if the vehicle is one of 4 police cars, and the skin is not a police skin
removePedFromVehicle( thePlayer )-- force the player out of the vehicle
outputChatBox("Tylko taks?wkarz mo?e prowadzi? ten pojazd.", thePlayer)
end
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle )



markers = { }
blips = { }
peds = { }
mposi = { }
mposii = {}




function startJob ( thePlayer )
local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] )
markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 )
mposi = { getElementPosition( markers [ thePlayer ] ) }
local skins = unpack ( pedCus [ math.random ( #pedCus ) ] )
peds [ thePlayer ] = createPed( skins, x, y, z )
blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 58 )
addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit )
end

function inVEH ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
if ( getElementModel ( source ) == 420 ) then
startJob ( thePlayer )
end
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), inVEH )

function warpit ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
local vehiclee = getPedOccupiedVehicle ( thePlayer )
if ( getElementModel ( vehiclee ) == 420 ) then
setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 )
destroyJob ( thePlayer )
local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] )
markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 )
mposii = { getElementPosition( markers [ thePlayer ] ) }
blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 41 )
addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup )
end
end
end


function pickmeup ( thePlayer )
if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then
destroyJob ( thePlayer )
local mx, my, mz = unpack ( mposi )
local mmx, mmy, mmz = unpack ( mposii )
local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy )
finalmoney = math.floor ( money )
if finalmoney then
setTimer( givePlayerMoney, 3000, 1, thePlayer, finalmoney, )
setTimer( outputChatBox, 3000, 1, thePlayer, "Otrzymujesz za kurs ".. money .."!", 0, 144, 0)
setTimer (
function ( )
if ( isElement ( peds [ thePlayer ] ) ) then
destroyElement ( peds [ thePlayer ] )
end
startJob ( thePlayer )
end
,3000, 1
)
end
end
end

function deleteOnExit ( thePlayer )
if ( isElement ( markers [ thePlayer ] ) ) then
destroyElement ( markers [ thePlayer ] )
end
if ( isElement ( blips [ thePlayer ] ) ) then
destroyElement ( blips [ thePlayer ] )
end
if ( isElement ( peds [ thePlayer ] ) ) then
destroyElement ( peds [ thePlayer ] )
end
end
addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit )


function destroyJob ( thePlayer )
if ( isElement ( markers [ thePlayer ] ) ) then
destroyElement ( markers [ thePlayer ] )
end
if ( isElement ( blips [ thePlayer ] ) ) then
destroyElement( blips [ thePlayer ] )
end
end

function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ )
setElementPosition ( source, posX, posY, posZ )
end
addCommandHandler ( "setpos", consoleSetPlayerPosition )


Oczywi??ie za skuteczn? pomoc postawi? piwko :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-06, 19:02


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Retro99, kase sie dostaje od przejechanej odleg?o??. a skin to jest if do rozpocz?cia pracy usun??em go.
local pickups = {
[1]={ -202.37744140625,1036.7016601563,19.7421875 },
}

local dropoffss = {
[1]={ -305.75393676758,829.33837890625,13.192380905151 },
}



local pedCus = {
[1]={ },
[2]={ 10 },
[3]={ 14 },
[4]={ 15 },
[5]={ 37 }
}





Teame createTeam("Taxi"02550)



taxiTeams = { [Teame] = true }
taxiVehs = { [420] = true }

function teamSet ( )
local team getTeamFromName "Taxi" )
if team then
setPlayerTeam sourceteam )
setPlayerNametagColor source0255)
createVehicle(420, -204.10664367676,1220.8515625,19.7421875)
outputChatBox("Zatrudni?e? si? jako taks?wkarz!"thePlayer)
else
local teamw getTeamFromName "Taxi" )
if teamw then
cancelEvent()
outputChatBox("Ju? pracujesz jako taks?wkarz."source)
end
end
end
addEvent "sTeame"true)
addEventHandler "sTeame"rootteamSet )


function enterVehicle thePlayerseatjacked ) -- when a player enters a vehicle
if getElementType thePlayer ) == "player" then
if not taxiTeams[getPlayerTeamthePlayer )]  then -- if the vehicle is one of 4 police cars, and the skin is not a police skin
removePedFromVehiclethePlayer )-- force the player out of the vehicle
outputChatBox("Tylko taks?wkarz mo?e prowadzi? ten pojazd."thePlayer)
end
end
end
addEventHandler "onVehicleEnter"getRootElement(), enterVehicle )



markers = { }
blips = { }
peds = { }
mposi = { }
mposii = {}




function startJob thePlayer )
local xyunpack pickups math.random #pickups ) ] )
markers thePlayer ] = createMarker xyz"cylinder"5.025500)
mposi = { getElementPositionmarkers thePlayer ] ) }
local skins unpack pedCus math.random #pedCus ) ] )
peds thePlayer ] = createPedskinsxy)
blips thePlayer ] = createBlipAttachedTo markers thePlayer ], 58 )
addEventHandler "onMarkerHit"markers thePlayer ], warpit )
end

function inVEH thePlayer )
if ( getElementType thePlayer ) == "player" and isPedInVehicle thePlayer ) ) then
if ( getElementModel source ) == 420 then
startJob thePlayer )
end
end
end
addEventHandler "onVehicleEnter"getRootElement(), inVEH )

function warpit thePlayer )
if ( getElementType thePlayer ) == "player" and isPedInVehicle thePlayer ) ) then
local vehiclee getPedOccupiedVehicle thePlayer )
if ( getElementModel vehiclee ) == 420 then
setTimer warpPedIntoVehicle20001peds thePlayer ], vehiclee)
destroyJob thePlayer )
local xyunpack dropoffss math.random #dropoffss ) ] )
markers thePlayer ] = createMarker xy1"cylinder"5.02550050 )
mposii = { getElementPositionmarkers thePlayer ] ) }
blips thePlayer ] = createBlipAttachedTo markers thePlayer ], 41 )
addEventHandler "onMarkerHit"markers thePlayer ], pickmeup )
end
end
end


function pickmeup thePlayer )
if ( getElementType thePlayer ) == "player" and isPedInVehicle thePlayer ) ) then
destroyJob thePlayer )
local mxmymz unpack mposi )
local mmxmmymmz unpack mposii )
local money getDistanceBetweenPoints2D mxmymmxmmy )
finalmoney math.floor money )
if finalmoney then
setTimergivePlayerMoney30001thePlayerfinalmoney, )
setTimeroutputChatBox30001thePlayer"Otrzymujesz za kurs ".. money .."!"01440)
setTimer (
function ( )
if ( isElement peds thePlayer ] ) ) then
destroyElement peds thePlayer ] )
end
startJob thePlayer )
end
,30001
)
end
end
end

function deleteOnExit thePlayer )
if ( isElement markers thePlayer ] ) ) then
destroyElement markers thePlayer ] )
end
if ( isElement blips thePlayer ] ) ) then
destroyElement blips thePlayer ] )
end
if ( isElement peds thePlayer ] ) ) then
destroyElement peds thePlayer ] )
end
end
addEventHandler "onVehicleExit"getRootElement(), deleteOnExit )


function destroyJob thePlayer )
if ( isElement markers thePlayer ] ) ) then
destroyElement markers thePlayer ] )
end
if ( isElement blips thePlayer ] ) ) then
destroyElementblips thePlayer ] )
end
end

function consoleSetPlayerPosition sourcecommandNameposXposYposZ )
setElementPosition sourceposXposYposZ )
end
addCommandHandler "setpos"consoleSetPlayerPosition )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-06, 20:17


Retro99







Wiek: 27
Na forum: 4472 dni
Posty: 20



Respekt: 50

Gdy wchodz? w marker i klikam rozpocznij prac? nic si? nie dzieje,a pojazd si? nie respi.

[ Dodano: 2014-09-07, 13:22 ]
Mam tutaj skrypt na sklep ze skinami i chcia?bym ?eby marker znajdowa? si? w interiorze sklepu Binco.Zrobi?em teleport do interioru Binco i mo?na do niego wej?? i z niego wyj??,ale gdy wpisuje do kodu kordy interioru sklepu to markera nie ma,a jak dam np.na ?rodku ulicy to jest.

Kod:

skinmtab={}
skinmtab[1]={207.61012268066,-101.15529632568,1005.2578125}

function skinmarkererstellen()
for variable,zeile in pairs(skinmtab) do
x,y,z=unpack(zeile)
skinchangemarker=createMarker(x,y,z,"cylinder",1.5,255,255,0)
createBlip(x,y,z,45,2,255,0,0,255,0,1000)
addEventHandler("onMarkerHit",skinchangemarker,function(player)
triggerClientEvent(player,"onSkinMarkerHit",player)
end)
end
end
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),skinmarkererstellen)

addEvent("onPlayerSkinChange",true)
addEventHandler("onPlayerSkinChange",getRootElement(),function(skinid)
setElementModel(source,skinid)
end
)


Oczywi?cie za pomoc stawiam piwko ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-07, 17:13


kamyrdol32







Wiek: 37
Na forum: 4667 dni
Posty: 75
Nick w MP: kamyrdol32

Piwa: 2

Respekt: 90

Witam, prosze o przerobienie tego skryptu aby po zbli?eniu sie do tej bramy otwiera?a si?, np w promieniu 50 m czy tam czego? i zamyka?a po odej?ciu.

CODE: http://pastebin.com/E7cZdyGf

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-13, 18:35


Retro99







Wiek: 27
Na forum: 4472 dni
Posty: 20



Respekt: 50

Mam tu skrypt na wybiera?k? skin?w,ale chcia?bym go przerobi? ?eby skin policjanta(280) by? niedost?pny,prosz? o przerobienie go w ten spos?b.

Kod:

local skinidped=0
local skinped=createPed(skinidped,216,-99,1005,90)
addEvent("onSkinMarkerHit",true)
addEventHandler("onSkinMarkerHit",getRootElement(),function()
if not isPedInVehicle(getLocalPlayer()) then
setElementFrozen(source,true)
setElementDimension(source,1)
setElementInterior(source,15)
setElementDimension(skinped,1)
setElementInterior(skinped,15)
setCameraMatrix(210,-99,1007,216,-99,1005)
skinbuttonvorher=guiCreateButton(0.2,0.5,0.2,0.1,"Wstecz",true)
guiSetFont(skinbuttonvorher,"Tahoma")
skinbuttonnext=guiCreateButton(0.6,0.5,0.2,0.1,"Dalej",true)
guiSetFont(skinbuttonnext,"Tahoma")
skinbuttonenter=guiCreateButton(0.4,0.7,0.2,0.1,"Wybierz",true)
guiSetFont(skinbuttonenter,"Tahoma")
skinbuttonback=guiCreateButton(0.4,0.82,0.2,0.1,"Anuluj",true)
guiSetFont(skinbuttonback,"Tahoma")
showCursor(true)
end
end
)

addEventHandler("onClientGUIClick",getRootElement(),
function (state)
if state == "left" then
if source == skinbuttonvorher then
skinidped=skinidped-1
if skinidped==-1 then
skinidped=312
end
setElementModel(skinped,skinidped)
elseif source == skinbuttonnext then
skinidped=skinidped+1
if skinidped==312 then
skinidped=0

end
setElementModel(skinped,skinidped)
elseif source == skinbuttonenter then
setElementDimension(getLocalPlayer(),0)
setElementInterior(getLocalPlayer(),0)
local x,y,z=getElementPosition(getLocalPlayer())
setElementPosition(getLocalPlayer(),x,y,z+0.1)
setCameraTarget(getLocalPlayer(),getLocalPlayer())
destroyElement(skinbuttonvorher)
destroyElement(skinbuttonnext)
destroyElement(skinbuttonenter)
destroyElement(skinbuttonback)
showCursor(false)
setElementFrozen(getLocalPlayer(),false)
triggerServerEvent("onPlayerSkinChange",getLocalPlayer(),skinidped)
elseif source == skinbuttonback then
setCameraTarget(getLocalPlayer(),getLocalPlayer())
setElementDimension(getLocalPlayer(),0)
setElementInterior(getLocalPlayer(),0)
destroyElement(skinbuttonvorher)
destroyElement(skinbuttonnext)
destroyElement(skinbuttonenter)
destroyElement(skinbuttonback)
showCursor(false)
setElementFrozen(getLocalPlayer(),false)
end
end
end
)


Oczywi?cie za skuteczn? pomoc stawiam :piwo: ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 12:10


kamyrdol32







Wiek: 37
Na forum: 4667 dni
Posty: 75
Nick w MP: kamyrdol32

Piwa: 2

Respekt: 90

Witam, potrzebuje skryptu kt?ry b?dzie banowa? graczy gdy u?y?a zakazane komendy (z listy) oraz ?eby ta komenda nie zosta?a u?yta.

Je?li z?y dzia? prosz? o przeniesienie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 16:22


Quin







Wiek: 25
Na forum: 4537 dni
Posty: 79

Piwa: 3

Respekt: 38

Prosz? o przerobienie skryptu tak aby nie by?o trzeba podawa? id broni tylko nazwe z gamemodu (gram na DayZ) np. zamiast id 31 to nazwe broni u mnie M4 CCO.
Skrypt:
local function playGunfireSound weaponID )
    local muzzleXmuzzleYmuzzleZ getPedWeaponMuzzlePosition source)
    if weaponID == 22 then--colt45
        local sound playSound3D"sounds/Colt45.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound30)
    elseif weaponID == 23 then--silenced
        local sound playSound3D"sounds/Silenced.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound10)
    elseif weaponID == 24 then--deagle
        local sound playSound3D"sounds/Deagle.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound100)
    elseif weaponID == 25 then--shotgun
        local sound playSound3D"sounds/Shotgun.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound200)
    elseif weaponID == 26 then--sawn-off
        local sound playSound3D"sounds/Sawed-Off.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound200)
    elseif weaponID == 27 then--combat shotgun
        local sound playSound3D"sounds/Combat Shotgun.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound200)
    elseif weaponID == 28 or weapon == 32 then--uzi/tec-9
        local sound playSound3D"sounds/UZI_Tec9.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound120)
    elseif weaponID == 29 then--mp5
        local sound playSound3D"sounds/MP5.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound110)
    elseif weaponID == 30 then --ak47
        local sound playSound3D"sounds/M4_AK47.mp3"muzzleXmuzzleYmuzzleZfalse)
         setSoundMaxDistance(sound400)
    elseif weaponID == 31 then --m4
        local sound playSound3D"sounds/M4_AK47.mp3"muzzleXmuzzleYmuzzleZfalse)
         setSoundMaxDistance(sound300)
    elseif weaponID == 33 then--rifle
        local sound playSound3D"sounds/Rifle.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound250)
    elseif weaponID == 34 then--sniper
        local sound playSound3D"sounds/Sniper.wav"muzzleXmuzzleYmuzzleZfalse )
         setSoundMaxDistance(sound300)
    end 
end

addEventHandler "onClientPlayerWeaponFire"rootplayGunfireSound )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 16:25


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Quin, zawsze musimy podawa? id broni tylko jest 1 odpowiednia funkcja do nazw .

Więcej informacji znajdziesz w Wikipedii MTA:

getWeaponIDFromName


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 17:30


Quin







Wiek: 25
Na forum: 4537 dni
Posty: 79

Piwa: 3

Respekt: 38

M?g?by? poda? mi przerobiony skrypt? Poniewa? zajmuje si? czym? i nie wiem te? jak to zrobi?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 17:32


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Quin, nie ja pomagam a nie robie gotowc?w.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-14, 17:34


Quin







Wiek: 25
Na forum: 4537 dni
Posty: 79

Piwa: 3

Respekt: 38

Dobra, dzi?ki za pomoc

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 12:27


Retro99







Wiek: 27
Na forum: 4472 dni
Posty: 20



Respekt: 50

Mam tutaj skrypt na panel spawnu,ale zlewa mi si? on z panelem logowania wiem,?e w panelu spawnu trzeba doda? onPlayerLogin,ale nie wiem jak to zrobi? prosz? o pomoc !

S-SIDE

local rot getRootElement()

addEvent("onSpawn"true)
addEventHandler("onSpawn"getRootElement(),
function(spawn)
       if (spawn=="Fort Carson"then
       fadeCamera(sourcetrue)
setCameraTarget(source,source)   
             spawnPlayer(source, -5.4491192.40219.359rotgetElementModel(source))
         return
       end
end
)

addEventHandler("onResourceStart"resourceRoot,
    function()
        for i,player in ipairs(getElementsByType("player")) do
            spawn(player)
        end
    end
)

function spawn(player)
    
    setPlayerNametagColor player244244244 )
    setPlayerTeam (playernil)
     
end

function spawnWasted(player)
    spawnPlayer player, -5.4491192.40219.359325math.random(19,25) )
    fadeCamera(playertrue)
    setCameraTarget(playerplayer)
    setPlayerNametagColor player244244244 )
    takePlayerMoney player)
        takeAllWeapons player )
end

addEventHandler("onPlayerLogin"root,
    function()
        spawn(source)
    end
)

addEventHandler("onPlayerWasted"root,
    function()
        setTimer(spawnWasted35001source)
    end
)


function setCameraOnPlayerJoin()
   fadeCamera(sourcetrue5)
     setCameraMatrix(source1468.8785400391, -919.25317382813100.1534652711468.388671875, -918.4247436523499.881813049316)

end
addEventHandler("onPlayerJoin"getRootElement(), setCameraOnPlayerJoin)


C-SIDE
 local GUIEditor_Button1 guiCreateButton(6,206,190,64,"Fort Carson",false)
 showCursor(true)

function closeAllButtons()
    guiSetVisible(GUIEditor_Button1false)
    showCursor(false)
end




function spawnA()
    triggerServerEvent("onSpawn"getLocalPlayer(), "Fort Carson")
    closeAllButtons()
end
addEventHandler("onClientGUIClick"GUIEditor_Button1spawnAfalse)

-- muzyczka 

function startMySound()
    sound playSound"buena.mp3"true )
end
addEventHandler"onClientResourceStart"getResourceRootElementgetThisResource() ), startMySound )

function stopMySound()

    stopSoundsound )
end
addEventHandler "onClientPlayerSpawn"getLocalPlayer(), stopMySound )


Postaw piwo autorowi tego posta
 

 
Tagi: prośby :: przerobienie :: skryptu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zasoby do MTA » PROŚBY O PRZEROBIENIE SKRYPTU Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku