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: policji.
1. Dodanie skinów do szatni policji.
To jest c.lua
[lua]mojeW,mojeH = 1680, 1050
sW,sH = guiGetScreenSize()
width, height = (sW/mojeW), (sH/mojeH)

GUIEditorq = {
button = {},
window = {},
radiobutton = {}
}
GUIEditorq.window[1] = guiCreateWindow(578*width, 234*height, 500*width, 384*height, "Szatnia i Magazyn", false)
guiWindowSetSizable(GUIEditorq.window[1], false)

GUIEditorq.button[1] = guiCreateButton(28*width, 75*height, 192*width, 49*height, "Pobierz Bro?", false, GUIEditorq.window[1])
guiSetProperty(GUIEditorq.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditorq.button[2] = guiCreateButton(28*width, 147*height, 192*width, 49*height, "Pobierz Kamizelke", false, GUIEditorq.window[1])
guiSetProperty(GUIEditorq.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditorq.button[3] = guiCreateButton(300*width, 250*height, 190*width, 49*height, "Rozpocznij S?u?b?", false, GUIEditorq.window[1])
guiSetProperty(GUIEditorq.button[3], "NormalTextColour", "FFAAAAAA")
GUIEditorq.radiobutton[1] = guiCreateRadioButton(267*width, 50*height, 171*width, 25*height, "LAPD", false, GUIEditorq.window[1])
guiRadioButtonSetSelected(GUIEditorq.radiobutton[1], true)
GUIEditorq.radiobutton[2] = guiCreateRadioButton(267*width, 68*height, 171*width, 25*height, "SFPD", false, GUIEditorq.window[1])
GUIEditorq.radiobutton[3] = guiCreateRadioButton(267*width, 86*height, 171*width, 25*height,...
2. Frakcja Policji.
Wraz z poradnikiem napisa?em Frakcje na policje. Team w tabeli sie tworzy jednak ja nie mog? zalogowa? si? do frakcji. Jestem dopisany w grupie Admin:
<object name="user.SMAQTFIE"></object>
Niewiem co mam zrobi? mo?e co? nie tak ze skryptem. Pomocy.
Skrypt:

Policja = createTeam ( "Policja", 0, 0, 255 )


function poli ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Admin" ) ) then
setPlayerTeam ( thePlayer, Policja )
giveWeapon ( thePlayer, 12, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 281 )
setElementPosition ( thePlayer, -1615.564453125, 681.64276123047, 7.1875 )
setPlayerNametagColor ( thePlayer, 0, 0, 255 )
else

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