Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wlaciciel
1. Wlaciciel Auta
Witam robi? panel rejestacji aut i mam problem. jak zarejestuje to chce jak gracz b?dzi? pr?bowa? do auta wejsc to ?eby spawdza?o najpierw czy auto jest zarejestowane i kogo oto kod:
function WejscieDoauta ( thePlayer, seat, jacked)
local kontogracza = getAccountName(getPlayerAccount(thePlayer))
local auto_gracza = getPedOccupiedVehicle(thePlayer)
if 
getElementData( auto_gracza, "rejestracja" ) then
removePedFromVehicle 
( thePlayer )
else
if 
getElementData( auto_gracza, "wlaciciel_auta" ) == auto_gracza then
outputChatBox 
("To nie twoje auto!", thePlayer, 193, 13, 13)
else
outputChatBox ("Witamy w swoim autcie!", thePlayer, 193, 13, 13)
end
end
end
addEventHandler
("onVehicleExit", getRootElement(), WejscieDoauta)