adisonboss


Wiek: 23 Na forum: 3331 dni Posty: 237
Piwa: 6
|
|
|
|
Witam mam pytanie. Gdzie musz? wpisa? sw?j nick by by? liderem frakcji. Mam dwa pliki z tego skryptu
Oto pierwszy
--createBlip (-2290.16064, -172.45178, 35.36875)
markerpolicja1 = createMarker (-2290.16064, -172.45178, 35.36875, 'cylinder', 1.4, 255,000,000, 150)
--setElementInterior(markerpolicja1, 3)
Policja = createTeam ( "Pa?stwowa Stra? Po?arna", 255,000,000 )
function policja ( thePlayer )
local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
local konto = getPlayerAccount( thePlayer ) -- get his account name
if getAccountData(konto, "psp") then
--local gracz = getPlayerFromName ( thePlayer )
setElementData( thePlayer, "duty:PSP", accName)
outputChatBox ( "* Zacze?e? prac? w PSP!", thePlayer, r, g, b, true )
outputChatBox ( "* Aby zako?czy? s?u?b? wyjd? z pojazdu, a nastepnie wpisz: /zakonczpsp", thePlayer, r, g, b, true )
setPlayerTeam ( thePlayer, Policja )
setPlayerSkin ( thePlayer, 279)
giveWeapon ( thePlayer, 42, 9999)
setPedArmor ( thePlayer, 100 )
setPlayerNametagColor ( thePlayer, 255,000,000 )
else
outputChatBox ( "* Nie nale?ysz do frakcji PSP!", thePlayer, r, g, b, true )
end
end
--addCommandHandler("loginpolicja", policja)
function policja2 ( thePlayer )
if getElementData( thePlayer, "duty:PSP" , accName) then
removeElementData( thePlayer,"duty:PSP", accName)
outputChatBox ( "* Zako?czy?e? prace w PSP, zosta?e? przeniesiony pod koszary!", thePlayer, r, g, b, true )
setElementPosition ( thePlayer , 345.34134, -76.50064, 1.41917 )
setPlayerTeam ( thePlayer, Everyone )
setPlayerSkin ( thePlayer, 0)
takeWeapon ( thePlayer, 42 )
takeWeapon ( thePlayer, 23 )
setPedArmor ( thePlayer, 0 )
setPlayerNametagColor ( thePlayer, 255, 255, 255 )
--elseif then
--outputChatBox("* Nie jeste? na duty PSP", thePlayer)
end
end
addCommandHandler("zakonczpsp", policja2)
addEventHandler("onMarkerHit",markerpolicja1,policja)
--addEventHandler("OnMarkerHit",markerpolicja2,policja2)
Oto drugi
-- --[[ Skrypt stworzony przez AseQ na potrzeby NPSNZ. ]]-- --
--[[function dodaj (source, commandName, gracz, score )
local accName = getAccountName ( getPlayerAccount ( source) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
local gracz1 = getPlayerFromName ( gracz )
konto = getPlayerAccount ( gracz1 )
--stan = getAccountData ( konto, "Rp" )
setAccountData ( konto, "sgsa")
local nick1 = getPlayerName ( source )
local nick2 = getPlayerName ( gracz1 )
outputChatBox("* Doda?e? gracza "..nick2.. "do frakcji.", source, 255, 255, 255)
outputChatBox("* Zosta?e? dodany do frakcji SGSA.", gracz1, 255, 255, 255)
else
outputChatBox("Nie jeste? adminem.", source, 255, 255, 255)
end
end
addCommandHandler("dodaj.sgsa", dodaj )--]]
function dajdostep ( source, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "zarzadPSP" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local nickgracza = getPlayerName ( gracz1 )
local konto = getPlayerAccount ( gracz1 )
if not getAccountData(konto, "psp") then
outputChatBox("* Doda?e? do frakcji gracza o nicku "..nickgracza..".", source)
--outputChatBox("* "..gracz1" doda? ci? do frakcji SGSA.", gracz1)
setAccountData(konto, "psp", true)
else
outputChatBox("* Gracz "..nickgracza.." jest ju? we frakcji PSP!", source)
end
else
outputChatBox("* Brak uprawnie?!", source)
end
end
addCommandHandler("dodaj.psp", dajdostep )
function zabierz ( source, commandName, gracz )
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "zarzadPSP" ) ) then
local gracz1 = getPlayerFromName ( gracz )
local nickgracza = getPlayerName ( gracz1 )
local konto = getPlayerAccount ( gracz1 )
if getAccountData(konto, "psp") then
outputChatBox("* Usune?e? z frakcji gracza o nicku "..nickgracza..".", source)
--outputChatBox("* "..gracz1" wyrzuci? Ci? z frakcji.", gracz1)
setAccountData(konto, "psp", false)
else
outputChatBox("* Gracz "..gracz1.." nie by? we frakcji!", source)
end
else
outputChatBox("* Brak uprawnie?!", source)
end
end
addCommandHandler("usun.psp", zabierz )
OCZYWI?CIE NAGRADZAM PIWKIEM
|
|