-
Posts
70 -
Joined
-
Last visited
Everything posted by Bzz335
-
Why command "admincar",but spawn car can everyone?! And everyone can spam cars and create laggs on server,bro.
-
local money={ [1]={math.random(150,400)}, [2]={math.random(400,600)}, [3]={math.random(600,800)}, [4]={math.random(800,1000)}, [5]={math.random(800,1000)}, [6]={math.random(800,1000)}, } function moneytest(player) givePlayerMoney ( player, money [ 6 ] ) end addCommandHandler("on",moneytest)
-
Omg,may be you just type incorrect command? Give me your acl.xml (PM)
-
use . function openGate1 (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "BadBoys" ) ) then moveObject( gate1, 1500, -1643.1999511719,1204.1999511719,2 ) else outputDebugString("Error") end end addCommandHandler("open", openGate1) function closeGate1 (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "BadBoys" ) ) then moveObject( gate1, 1500, -1643.1999511719,1204.1999511719,6.3000001907349 ) else outputDebugString("Error") end end addCommandHandler("close", closeGate1) Check debug,when you will be on marker.
-
Check,may be you aren't in group?
-
addCommandHandler("close", closeGate1) addCommandHandler("open", openGate1) Debug?
-
OMG! function(closeGate1) function(openGate1) Replace: function openGate1(thePlayer) function closeGate1(thePlayer) See,guy. function name (arguments)
-
./debugscript 3
-
Do you created a ACL group? Added to group members? Say more about problem,i'm not Vanga.
-
getElementType WTF.. Use: function 11 (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "NameOfACLgroup" ) ) then your code here end end Learn lua,guy.
-
Hi guys,i must ask you again about tables. Position.lua: JailPoition={ [1]={0,0,0}, } PDposition={ [1]={0,4,1), --Where's player will be spawned after jail. } Server.lua: setTimer (setElementPosition, 60000, 1, source,x,y,z) I need to "unpack" a PDposition table and get "x,y,z". Thanks.
-
So,just set "alpha" to 0. createMarker ( 1553,-1678,14.5,"cylinder",0.5,0,0,0,0 ] -- X,Y,Z,type,size,R,G,B,A. Gl HF. ^^
-
Help me,please. local PDmarkers={ [1]={1553,-1678,14.5,"cylinder",0.5,0,0,0,0}, } local markers= { } for i,markers in ipairs(PDmarkers) do markers[i] = createMarker(marker[1],marker[2],marker[3],marker[4],marker[5],marker[6],marker[7],marker[8],marker[9]) end attemp to index global 'marker' a nil value.
-
Спасибо,амарант. Просто делаю что-то вроде простенькой системы полиции.Осталось сделать только GUI,обязательно добавлю Вас в "кредиты",как и товарища "Castillo".
-
I think that it's not good,use "addEventHandler" or "BindKey".Just command it's old junk. my opinion
-
No. See.for 1 situation he must get math.random(150,400)[1] in another math.random(400,600)[2]. But thanks,Castillo.
-
Hi guys.I have table with amount. local money={ [1]={math.random(150,400)}, [2]={math.random(400,600)}, [3]={math.random(600,800)}, [4]={math.random(800,1000)}, [5]={math.random(800,1000)}, [6]={math.random(800,1000)}, } addEventHandler ("onPlayerDamage", getRootElement(), function(attacker, weapon, bodypart, loss) givePlayerMoney(attacker,!?)-- Here's need value from string in table money [1]. end thanks.
-
Как сделать неуязвимого бота(ped)><? Ещё вопрос: local money={ [1]={math.random(150,400)}, [2]={math.random(400,600)}, [3]={math.random(600,800)}, [4]={math.random(800,1000)}, [5]={math.random(800,1000)}, [6]={math.random(800,1000)}, } Есть таблица с некими числами,как их сделать в такой функции,что-то вроде этого: givePlayerMoney(thePlayer,money[1]) ____ У меня что-то с википедией,кароч..(
