Wysłany: 2013-09-10, 18:53
mrmay4141
KOR Gaming Innovator
Wiek: 28 Na forum: 4860 dni Posty: 86
Nick w MP: Sexyvise
Piwa : 4
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
Wysłany: 2013-09-10, 20:32
Zgredek666
LUA
Wiek: 27 Na forum: 4722 dni Posty: 251
Nick w MP: Zgredek
Piwa : 442
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?.
Wysłany: 2013-09-11, 18:51
mrmay4141
KOR Gaming Innovator
Wiek: 28 Na forum: 4860 dni Posty: 86
Nick w MP: Sexyvise
Piwa : 4
Sprawdzi?em i pozmienia?em i dalej nic.
Wysłany: 2013-09-11, 19:17
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
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
Tagi: nie :: przenosi
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: