Wysłany: 2012-10-13, 15:01
osom
Wiek: 32 Na forum: 4995 dni Posty: 37
Co jest ?le ;/ ? To samo mam z teamem "red"
function login ()
if getPlayerTeam ( source ) == getTeamFromName ( "blue" ) then
setElementPosition ( thePlayer , - 1615.564453125 , 681.64276123047 , 7.1875 )
fadeCamera ( source , true )
setCameraTarget ( source , source )
end
end
addEventHandler ( "onPlayerLogin" , getRootElement (), login )
Wysłany: 2012-10-13, 15:39
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
function login ()
if getPlayerTeam ( source ) == getTeamFromName ( "blue" ) then
setElementPosition ( source , - 1615.564453125 , 681.64276123047 , 7.1875 )
fadeCamera ( source , true )
setCameraTarget ( source , source )
end
end
addEventHandler ( "onPlayerLogin" , getRootElement (), login )
Wysłany: 2012-10-13, 18:58
osom
Wiek: 32 Na forum: 4995 dni Posty: 37
Dzia?a dzi?ki. Z kolei kod przy do??czeniu do gry wygl?da tak:
function joinHandler ()
setElementInterior ( source , 1 )
setElementPosition ( source , 231 , 1289 , 1082.50 )
fadeCamera ( source , true )
setCameraTarget ( source , source )
outputChatBox ( "Musisz sie zalogowac" , source )
end
addEventHandler ( "onPlayerJoin" , getRootElement (), joinHandler )
Przenosi gracza, lecz nie mo?e si? on porusza?.
EDIT: Z logowaniem zn?w jest problem... Podam ca?o?? i powiem o co chodzi:
function login ()
if getPlayerTeam ( source ) == getTeamFromName ( "Policja" ) then
setElementPosition ( source , - 1615.564453125 , 681.64276123047 , 7.1875 )
setCameraTarget ( source , source )
fadeCamera ( source , true )
end
end
addEventHandler ( "onPlayerLogin" , getRootElement (), login )
function joinHandler ()
setElementInterior ( source , 1 )
setElementPosition ( source , 231 , 1289 , 1082.50 )
fadeCamera ( source , true )
setCameraTarget ( source , source )
outputChatBox ( "Musisz sie zalogowac" , source )
end
addEventHandler ( "onPlayerJoin" , getRootElement (), joinHandler )
Przy wej?ciu na serwer jest to co napisa?em wy?ej, natomiast jak si? zaloguj? to nic si? nie dzieje ;/
Tagi: nie :: przenosi :: gracza :: przy :: zalogowaniu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: