Wysłany: 2016-01-12, 18:59
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Witam tak jakby nie triggerowa?o, ale mysle ze to nie to
c-side:
addEvent ( "onplayerlogin" , true )
local screenW , screenH = guiGetScreenSize ()
ls = guiCreateLabel ( 0.03 , 0.05 , 0.18 , 0.05 , "Los Santos" , true )
pc = guiCreateLabel ( 0.03 , 0.13 , 0.18 , 0.05 , "Palomino Creek" , true )
lv = guiCreateLabel ( 0.03 , 0.21 , 0.18 , 0.05 , "Las Venturas" , true )
guiSetFont ( ls , "default-bold-small" )
guiLabelSetHorizontalAlign ( ls , "center" , false )
guiLabelSetVerticalAlign ( ls , "center" )
guiSetFont ( pc , "default-bold-small" )
guiLabelSetHorizontalAlign ( pc , "center" , false )
guiLabelSetVerticalAlign ( pc , "center" )
guiSetFont ( lv , "default-bold-small" )
guiLabelSetHorizontalAlign ( lv , "center" , false )
guiLabelSetVerticalAlign ( lv , "center" )
guiSetVisible ( ls , false )
guiSetVisible ( pc , false )
guiSetVisible ( lv , false )
function panelek ()
dxDrawRectangle ( screenW * 0.0297 , screenH * 0.0481 , screenW * 0.1750 , screenH * 0.0519 , tocolor ( 86 , 86 , 86 , 255 ), false )
dxDrawRectangle ( screenW * 0.0297 , screenH * 0.1296 , screenW * 0.1750 , screenH * 0.0519 , tocolor ( 86 , 86 , 86 , 255 ), false )
dxDrawRectangle ( screenW * 0.0297 , screenH * 0.2148 , screenW * 0.1750 , screenH * 0.0519 , tocolor ( 86 , 86 , 86 , 255 ), false )
end
addEventHandler ( "onplayerlogin" , root ,function()
addEventHandler ( "onClientRender" , getRootElement (), panelek )
guiSetVisible ( ls , true )
guiSetVisible ( pc , true )
guiSetVisible ( lv , true )
showCursor ( true , false )
showChat ( false )
end )
function lsspawn ()
triggerServerEvent ( "spawnls" , getRootElement (), localPlayer )
guiSetVisible ( ls , false )
guiSetVisible ( pc , false )
guiSetVisible ( lv , false )
showCursor ( false , false )
showChat ( false )
removeEventHandler ( "onClientRender" , getRootElement (), panelek )
end
addEventHandler ( "onClientGUIClick" , ls , lsspawn , false )
s-side
addEventHandler ( "onPlayerLogin" , getRootElement (),function( player )
triggerClientEvent ( player , "onplayerlogin" , root )
end )
addEvent ( "spawnls" , true )
addEventHandler ( "spawnls" , root ,function( player )
local playerSkin = getAccountData ( theCurrentAccount , "funmodev2-skin" )
setCameraTarget ( source , source )
fadeCamera ( source , true , 15 )
spawnPlayer ( source , 1478.13 ,- 1705.23 , 14.05 , 0 , playerSkin )
end )
[ Dodano : 2016-01-12, 19:06 ]
DB BRAK
Wysłany: 2016-01-12, 19:16
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen ,
triggerServerEvent ( "spawnls" , localPlayer , localPlayer )
[ Dodano : 2016-01-12, 19:17 ]
Mo?e by? b?ad tutaj:
addEventHandler ( "spawnls" , root ,function( player )
local playerSkin = getAccountData ( theCurrentAccount , "funmodev2-skin" )
setCameraTarget ( source , source )
fadeCamera ( source , true , 15 )
spawnPlayer ( source , 1478.13 ,- 1705.23 , 14.05 , 0 , playerSkin )
end ) Dok?adnie to theCurrentAccount
Wysłany: 2016-01-12, 19:26
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Dalej nic
2 linijka s-side expand element at arg. 1
Wysłany: 2016-01-12, 19:29
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
addEventHandler ( "onPlayerLogin" , getRootElement (),
function()
triggerClientEvent ( source , "onplayerlogin" , source )
end )
Zobacz na funkcje onPlayerLogin na wiki:
Wysłany: 2016-01-12, 19:30
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Ten sam b??d
Wysłany: 2016-01-12, 19:31
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen , podaj linijk? tego b??du.
Wysłany: 2016-01-12, 19:35
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Wysłany: 2016-01-12, 19:42
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen , pokaz kod server.
Wysłany: 2016-01-12, 19:48
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
addEventHandler("onPlayerLogin",getRootElement(),
function()
triggerClientEvent(source,"onplayerlogin",source)
end)
addEvent("spawnls",true)
addEventHandler("spawnls",root,function(theCurrentAccount)
local playerSkin = getAccountData (theCurrentAccount, "funmodev2-skin")
setCameraTarget (source, source)
fadeCamera(source, true, 15)
spawnPlayer(source,1478.13,-1705.23,14.05,0,playerSkin)
end)
Wysłany: 2016-01-12, 19:49
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen , 2 linijka :
Zrestartuj skrypt.
Wysłany: 2016-01-12, 19:52
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
no bo teraz 3 linijka z tym b??dem !
Wysłany: 2016-01-12, 19:59
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen , ja mam ten kod i nie ma b??du:
addEventHandler ( "onPlayerLogin" , getRootElement (),
function()
triggerClientEvent ( source , "onplayerlogin" , source )
end )
addEvent ( "spawnls" , true )
addEventHandler ( "spawnls" , root ,function( theCurrentAccount )
local playerSkin = getAccountData ( theCurrentAccount , "funmodev2-skin" )
setCameraTarget ( source , source )
fadeCamera ( source , true , 15 )
spawnPlayer ( source , 1478.13 ,- 1705.23 , 14.05 , 0 , playerSkin )
end )
Wysłany: 2016-01-12, 20:27
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
A ja mam
Wysłany: 2016-01-12, 20:28
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
BlackTen , wy??cz serwer i w??cz.
Wysłany: 2016-01-12, 20:41
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Tagi: trigger
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: