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

Wysłany: 2013-09-10, 18:53


mrmay4141

KOR Gaming Innovator






Wiek: 29
Na forum: 5002 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Mam problem gdy? gdy loguje si? na mojim rpg do team? to nie przenosi to team? ale teleportuje do baz i zmienia nick na kolor teamu.
KODY
Kod:


mechanic1 = createTeam ( "Pomoc Drogowa", 139, 0, 139 )
medic1 = createTeam ( "Pogotowie", 32, 178, 170 )
police1 = createTeam ( "Policja", 0, 0, 255 )
taxi1 = createTeam ( "Taxi", 255, 215, 0 )
u1 = createTeam ( "Urzad", 155, 120, 71 )
wojsko1 = createTeam ( "Wojsko", 182, 67, 44 )
ultra1 = createTeam ( "Ultra-Trans", 153, 255, 0 )

local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
function mechanic1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Pomoc Drogowa" ) ) then
setPlayerTeam ( thePlayer, mechanic )
giveWeapon ( thePlayer, 25, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 50 )
setElementPosition ( thePlayer, -1539.1623535156, 475.25180053711, 6.8367257118225 )
setPlayerNametagColor ( thePlayer, 139, 0, 139 )
else

outputChatBox( "Nie jestes pracownikiem Pomocy Drogowej", getRootElement())
end
end
addCommandHandler ( "loginpd", mechanic1 )


function medic1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )

setPlayerTeam ( thePlayer, medic )
giveWeapon ( thePlayer, 43, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 274 )
setElementPosition ( thePlayer,-2577.8974609375 , 584.50665283203, 14.102350234985 )
setPlayerNametagColor ( thePlayer, 32, 178, 170 )


end


addCommandHandler ( "loginpogo", medic1 )

function police1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, police )
giveWeapon ( thePlayer, 3, 10000 )
giveWeapon ( thePlayer, 30, 10000 )
giveWeapon ( thePlayer, 23, 10000 )
setPedArmor ( thePlayer, 50 )
setElementModel ( thePlayer, 281 )
setElementPosition ( thePlayer,-1616.7879638672 , 685.34326171875, 6.8367257118225 )
setPlayerNametagColor ( thePlayer, 0, 0, 255 )
else

outputChatBox( "Nie jestes pracownikiem Policji", getRootElement())
end
end
addCommandHandler ( "loginpolicja", police1 )


function taxi1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Taxi" ) ) then

setPlayerTeam ( thePlayer, taxi )
setElementModel ( thePlayer, 32 )
setElementPosition ( thePlayer, -1712 , 997, 17 )
setPlayerNametagColor ( thePlayer, 255, 215, 0 )

else

outputChatBox( "Nie jestes pracownikiem Taxi", getRootElement())
end

end
addCommandHandler ( "logintaxi", taxi1 )


function u1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Urzad" ) ) then
setPlayerTeam ( thePlayer, u )
giveWeapon ( thePlayer, 29, 9999 )
giveWeapon ( thePlayer, 23, 9999 )
giveWeapon ( thePlayer, 25, 9999 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 186 )
setElementPosition ( thePlayer, -1987.0964355469, 529.14642333984, 35.171875 )
setPlayerNametagColor ( thePlayer, 255, 69, 0 )
else

outputChatBox( "Nie jestes pracownikiem Urzedu", getRootElement())
end
end
addCommandHandler ( "loginurzad", u1 )


local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
function wojsko1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Wojsko" ) ) then
setPlayerTeam ( thePlayer, wojsko )
giveWeapon ( thePlayer, 31, 9999 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 287 )
setElementPosition ( thePlayer, 247.69999694824 , 1859.5999755859, 14.10000038147 )
setPlayerNametagColor ( thePlayer, 205, 0, 250 )
else

outputChatBox( "Nie jestes pracownikiem WOJSKA", getRootElement())
end
end
addCommandHandler ( "loginwojsko", wojsko1 )


function ultra1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Ultra-Trans" ) ) then
setPlayerTeam ( thePlayer, ultra )
setElementModel ( thePlayer, 73 )
setElementPosition ( thePlayer, -14 , -328, 6 )
setPlayerNametagColor ( thePlayer, 153, 255, 0 )
else
outputChatBox( "Nie jestes pracownikiem Ultra-Trans", getRootElement())
end
end
addCommandHandler ( "loginultra", ultra1 )

Paczka by?a ?ci?gni?ta ale troche pozmienia?em

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-10, 20:32


Zgredek666

LUA






Wiek: 27
Na forum: 4863 dni
Posty: 251
Nick w MP: Zgredek

Piwa: 442

Respekt: 70,1

mechanic = createTeam ( "Pomoc Drogowa", 139, 0, 139 ) 
medic = createTeam ( "Pogotowie", 32, 178, 170 ) 
police = createTeam ( "Policja", 0, 0, 255 ) 
taxi = createTeam ( "Taxi", 255, 215, 0 ) 
u = createTeam ( "Urzad", 155, 120, 71 ) 
wojsko = createTeam ( "Wojsko", 182, 67, 44 ) 
ultra = createTeam ( "Ultra-Trans", 153, 255, 0 ) 

local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
function mechanic1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Pomoc Drogowa" ) ) then 
setPlayerTeam ( thePlayer, mechanic ) 
giveWeapon ( thePlayer, 25, 10000 ) 
setPedArmor ( thePlayer, 100 ) 
setElementModel ( thePlayer, 50 ) 
setElementPosition ( thePlayer, -1539.1623535156, 475.25180053711, 6.8367257118225 ) 
setPlayerNametagColor ( thePlayer, 139, 0, 139 ) 
else 

outputChatBox( "Nie jestes pracownikiem Pomocy Drogowej", getRootElement()) 
end 
end 
addCommandHandler ( "loginpd", mechanic1 ) 


function medic1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    

setPlayerTeam ( thePlayer, medic ) 
giveWeapon ( thePlayer, 43, 10000 ) 
setPedArmor ( thePlayer, 100 ) 
setElementModel ( thePlayer, 274 ) 
setElementPosition ( thePlayer,-2577.8974609375 , 584.50665283203, 14.102350234985 ) 
setPlayerNametagColor ( thePlayer, 32, 178, 170 ) 


end 


addCommandHandler ( "loginpogo", medic1 ) 

function police1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then 
setPlayerTeam ( thePlayer, police ) 
giveWeapon ( thePlayer, 3, 10000 ) 
giveWeapon ( thePlayer, 30, 10000 ) 
giveWeapon ( thePlayer, 23, 10000 ) 
setPedArmor ( thePlayer, 50 ) 
setElementModel ( thePlayer, 281 ) 
setElementPosition ( thePlayer,-1616.7879638672 , 685.34326171875, 6.8367257118225 ) 
setPlayerNametagColor ( thePlayer, 0, 0, 255 ) 
else 

outputChatBox( "Nie jestes pracownikiem Policji", getRootElement()) 
end 
end 
addCommandHandler ( "loginpolicja", police1 ) 


function taxi1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Taxi" ) ) then 

setPlayerTeam ( thePlayer, taxi ) 
setElementModel ( thePlayer, 32 ) 
setElementPosition ( thePlayer, -1712 , 997, 17 ) 
setPlayerNametagColor ( thePlayer, 255, 215, 0 ) 

else 

outputChatBox( "Nie jestes pracownikiem Taxi", getRootElement()) 
end 

end 
addCommandHandler ( "logintaxi", taxi1 ) 


function u1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Urzad" ) ) then 
setPlayerTeam ( thePlayer, u ) 
giveWeapon ( thePlayer, 29, 9999 ) 
giveWeapon ( thePlayer, 23, 9999 ) 
giveWeapon ( thePlayer, 25, 9999 ) 
setPedArmor ( thePlayer, 100 ) 
setElementModel ( thePlayer, 186 ) 
setElementPosition ( thePlayer, -1987.0964355469, 529.14642333984, 35.171875 ) 
setPlayerNametagColor ( thePlayer, 255, 69, 0 ) 
else 

outputChatBox( "Nie jestes pracownikiem Urzedu", getRootElement()) 
end 
end 
addCommandHandler ( "loginurzad", u1 ) 


local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
function wojsko1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Wojsko" ) ) then 
setPlayerTeam ( thePlayer, wojsko ) 
giveWeapon ( thePlayer, 31, 9999 ) 
setPedArmor ( thePlayer, 100 ) 
setElementModel ( thePlayer, 287 ) 
setElementPosition ( thePlayer, 247.69999694824 , 1859.5999755859, 14.10000038147 ) 
setPlayerNametagColor ( thePlayer, 205, 0, 250 ) 
else 

outputChatBox( "Nie jestes pracownikiem WOJSKA", getRootElement()) 
end 
end 
addCommandHandler ( "loginwojsko", wojsko1 ) 
function ultra1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )    
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Ultra-Trans" ) ) then 
setPlayerTeam ( thePlayer, ultra ) 
setElementModel ( thePlayer, 73 ) 
setElementPosition ( thePlayer, -14 , -328, 6 ) 
setPlayerNametagColor ( thePlayer, 153, 255, 0 ) 
else 
outputChatBox( "Nie jestes pracownikiem Ultra-Trans", getRootElement()) 
end 
end 
addCommandHandler ( "loginultra", ultra1 )


Je?eli doda?e? grup? do Acl tak jak nazywa si? w skrypcie to ma ?miga?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-11, 18:51


mrmay4141

KOR Gaming Innovator






Wiek: 29
Na forum: 5002 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Sprawdzi?em i pozmienia?em i dalej nic.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-11, 19:17


vipSEBOvip

A poor begginer






Wiek: 27
Na forum: 5319 dni
Posty: 597
Nick w MP: xSebaPL

Piwa: 77

Respekt: 140
Respekt: 140

A mo?e dlatego, bo masz:
setPlayerTeam(thePlayer, mechanic)


a team nazywa si?:
mechanic1 = createTeam ( "Pomoc Drogowa", 139, 0, 139 ) 


Pododawaj wsz?dzie te jedynki ;p

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: przenosi
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Nie przenosi 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