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: broń?
1. Co zrobić by dawało broń?
Cze??, posiadam skrypt na duty administracji, dorobi?em w?asn? suszark? lecz nie wiem co zrobi?, by po wpisaniu komendy duty i zalogowaniu si? na rang? da?o nam Colta (ID 22)
Tutaj macie ten kodzik i prosz?, pode?lijcie mi ju? gotowy kod, nie zr?bcie tylko czego? takiego ?e gdy nie jeste?my w sql to nam daje bro? :D
[code]
function jestRCONem(gracz)
if getElementData(gracz, "duty") == 3 then return true end
end


function jestADMINem(gracz)
if getElementData(gracz, "duty") == 2 then return true end
end


function jestModem(gracz)
if getElementData(gracz, "duty") == 1 then return true end
end

addCommandHandler("admins", function(gracz,cmd)
admini = {}
rconi = {}
moderatorzy = {}
for k,v in ipairs(getElementsByType("player")) do
if jestRCONem(v) then
table.insert(rconi, getPlayerName(v))
elseif jestModem (v) then
table.insert(moderatorzy, getPlayerName(v))
elseif jestADMINem(v) then
table.insert(admini, getPlayerName(v))
end
end
for i=0,1 do
outputChatBox(" ", gracz)
end
outputChatBox("* Dost?pni RCON'i:", gracz, 120, 0, 0)
if #rconi > 0 then
outputChatBox(table.concat(rconi, ", "), gracz)
else
outputChatBox("brak", gracz)
...
2. Jak zablokować broń?
Ostatnio zrobi?em serwer i nie wiem jak zablokowa? komend? /give oraz /cv
Mam ot?? zablokowane bronie w weapons.xml oraz w vehicles.xml
ale teraz mam problem, ?e mo?na sobie i tak da? bronie czy pojazdy przez komendy /give /cv potrzebuj? pomocy! Ka?dy kto odpowie dostanie piwo!