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

Wysłany: 2014-08-02, 19:59


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

?[color=red][/color]Mam problem ze spawnem bo jak wchodzisz na serwa to normalnie sie respisz ale jak zginiesz to sie nie respisz i trzeba robic reconnect
oto kod :
function joinHandler()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Witaj na polskim serwerze RPG !", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)



za pomoc stawiam :piwo:
za pomoc przy zrobieniu skryptu na rejestracje aut do rpg stawiam :piwo: i R*
pozdro?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:09


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4783 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

function joinHandler()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
outputChatBox("Witaj na polskim serwerze RPG !"source)
end
addEventHandler("onPlayerJoin"getRootElement(), joinHandleraddEventHandler("onPlayerWasted",getRootElement(),joinHandler)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:15


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Dobra zrobie tak jak mi napisales

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:17


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4783 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

U?yj tego kodu, tamten to tylko przyk?ad (podmie? ca?o??):


function joinHandler()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
outputChatBox("Witaj na polskim serwerze RPG !"source)
end
addEventHandler("onPlayerJoin"getRootElement(), joinHandler) 

function wasted()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
addEventHandler("onPlayerWasted",getRootElement(),wasted)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:19


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Dzieki dziala stawiam :piwo: a i bys umial aby respawn byl po 10sek?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:22


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4783 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Zamie? to :

function wasted()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
addEventHandler("onPlayerWasted",getRootElement(),wasted)


Na to:

function wasted()
setTimer(function()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
end,10000,1)
addEventHandler("onPlayerWasted",getRootElement(),wasted)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 20:26


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

ej jak podales ten kod :
function joinHandler()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Witaj na polskim serwerze RPG !", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
addEventHandler("onPlayerWasted",getRootElement(),joinHandler)



to sie spawnilem i jak zginolem tez sie spawnilem a jak mam ten kod :
function joinHandler()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Witaj na polskim serwerze RPG !", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)

function wasted()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
addEventHandler("onPlayerWasted",getRootElement(),wasted
to sie nie respie jak zgine :(

[ Dodano: 2014-08-02, 20:38 ]
To oco z tym chodzi ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-02, 21:31


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Bo zrobi?e? ?le krydianero. W setTimer u?ywaj?c funkcji poni?ej, musisz poda? element wykonywanego argumentu.


function wasted()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
setTimer spawnPlayer,10000,1,sourcexyz)
setTimer fadeCamera,10000,1sourcetrue)
setTimer setCameraTarget,10000,1sourcesource)
addEventHandler("onPlayerWasted",getRootElement(),wasted)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-03, 12:26


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

czyli ma byc tak :
Kod:

function joinHandler()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Witaj na polskim serwerze RPG !", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
addEventHandler("onPlayerWasted",getRootElement(),joinHandler)

function wasted()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
setTimer ( spawnPlayer,10000,1,source, x, y, z)
setTimer ( fadeCamera,10000,1source, true)
setTimer ( setCameraTarget,10000,1source, source)
addEventHandler("onPlayerWasted",getRootElement(),wasted)









Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-03, 12:39


|Mlody|

Szatan ponad Szatana






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

Piwa: 205

Respekt: 52,5

Taa.. chyba ?e co? w kodzie jak patrzy?em przeoczy?em ;)

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-08-03, 12:44


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Tylko teraz jak mam ten kod to mi nie dziala czyli ten kod :
Kod:

function joinHandler()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Witaj na polskim serwerze RPG !", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
addEventHandler("onPlayerWasted",getRootElement(),joinHandler)

function wasted()
local x = 1480.9064941406
local y = -1771.8071289063
local z = 18.795755386353
setTimer ( spawnPlayer,10000,1,source, x, y, z)
setTimer ( fadeCamera,10000,1source, true)
setTimer ( setCameraTarget,10000,1source, source)
addEventHandler("onPlayerWasted",getRootElement(),wasted)



a jak mam ten :
function joinHandler()
local x 1480.9064941406
local y = -1771.8071289063
local z 18.795755386353
spawnPlayer(sourcexyz)
fadeCamera(sourcetrue)
setCameraTarget(sourcesource)
outputChatBox("Witaj na polskim serwerze RPG !"source)
end
addEventHandler("onPlayerJoin"getRootElement(), joinHandleraddEventHandler("onPlayerWasted",getRootElement(),joinHandler)

to dziala piwko za pomoc :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-30, 12:31


ghost999990







Wiek: 25
Na forum: 4233 dni
Posty: 1

Piwa: 1

Respekt: 50

Masz taki Spawn bardzo fajny jak co to ci mog? jeszcze mapk? do tego dorobi? bo nie widz? problemu jak co to tez jestem skrypterem :D
tutaj masz kod :

function joinCywile( thePlayer )
local x = -1972.1066894531
local y = 883.46441650391
local z = 45.203125
setElementModel( source, 0 )
fadeCamera( source, true, 3 )
setCameraTarget( source, source)
spawnPlayer( source, x, y, z )
setPlayerTeam( source, cywile )
outputChatBox( "Witaj na serwerze ! ?yczymy mi?ej zabawy !", source, 48, 213, 200 )
end
addEventHandler( "onPlayerLogin", getRootElement(), joinCywile )

a tu tak dam w prezencie kod jj zw itp :


function zw( thePlayer )
local gracz = getPlayerName( thePlayer )
outputChatBox( gracz.. " zaraz wraca ", getRootElement(), 255, 255, 255 )
end

function jj( thePlayer )
local gracz = getPlayerName( thePlayer )
outputChatBox( gracz.. " ju? jest ", getRootElement(), 255, 255, 255 )
end

function strona( thePlayer )
outputChatBox( "Strona: www.prl-mta.wxv.pl", thePlayer, 0, 255, 0 )
end

addCommandHandler( "strona", strona )
addCommandHandler( "zw", zw )
addCommandHandler( "jj", jj )
masz :* b?d? wdzi?czny jak dasz piwko zimne

Postaw piwo autorowi tego posta
 

 
Tagi: spawn :: rejestracja :: aut
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Spawn I rejestracja aut Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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