-
Posts
144 -
Joined
-
Last visited
Everything posted by devildead622
-
how so? destroyElement(source) should not be this? destroyElement(veh)
-
thanks! this? function givebike( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not bike then local x,y,z= getElementPosition(player) veh = createVehicle(509, x+1, y, z) warpPedIntoVehicle(player, veh) setElementData(player, "bike", true) addEventHandler("onVehicleExit", veh, function(player) setTimer(function(source, player) destroyElement(source) setElementData(player, "bike", false) end, 100, 1, source, player) end) else outputChatBox ( "Voce nao pode pegar duas Bikes ao mesmo tempo!", player, 255,0,0, true) end end end addCommandHandler("bikevip",givebike)
-
to make of this? function givebike( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not bike then local x,y,z= getElementPosition(player) veh = createVehicle(509, x+1, y, z) warpPedIntoVehicle(player, veh) setElementData(player, "bike", true) addEventHandler('onVehicleExit',veh,function() setTimer ( function() destroyElement( veh ) setElementData(player, "bike", false) end, 100, 1 ) end) else outputChatBox ( "Voce nao pode pegar duas Bikes ao mesmo tempo?", player, 255,0,0, true) end end end addCommandHandler("bikevip",givebike) the only thing I have doubts and this addEventHandler('onVehicleExit',veh,function() setTimer ( function() destroyElement( veh ) setElementData(player, "bike", false) end, 100, 1 ) end)
-
to make of this? addEventHandler('onVehicleExit',veh,function() setTimer ( function() destroyElement( veh ) setElementData(player, "bike", false) end, 100, 1 ) end)
-
thanks! =]
-
still not working
-
what do changed?
-
account name
-
it does not add the user in the group
-
??????? you can help me?
-
Why are not you working? Command: function delbase (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' nao tem mais permicao!", playerSource) else outputChatBox ("Nome de conta errado", playerSource) outputChatBox ("Correto: /removerplayer1 [nome]", playerSource) end end end addCommandHandler ("removerplayer1", delbase) function givebase (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "baseasfarcdono" ) ) then if accountName then aclGroupAddObject (aclGetGroup("baseasfarc"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' agora tem permicao para abrir seu portao", playerSource) else outputChatBox ("Nome incorreto", playerSource) outputChatBox ("Correto: /addplayer1 [accountName]", playerSource) end end end addCommandHandler ("addplayer1", givebase) Acl.xml <group name="baseasfarc"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group> <group name="baseasfarcdono"> <object name="resource.baseasfarc"></object> <object name="user.asfarc"></object> </group>
-
Thank you! I see that I have to research more on wiki ^^ =]
-
Why not get the color #4200FF? outputChatBox ( "#4200FF blalbalbalabl!", source)
-
addEventHandler("onPlayerLogin", root, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( "#4200FF Voce e um VIP!", player, 255,0,0) outputChatBox ( "#4200FF Para ver seus comandos, use #ff0000 /ajudavip", player, 255,0,0) outputChatBox ( "#4200FF E para ver os comandos do servidor: #ff0000 /ajuda", player, 255,0,0) else outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( "#4200FF Compre sua base+vip por apenas RS5.00", player, 255,0,0) outputChatBox ( "#4200FF Add skype: devildead622 e confira!", player, 255,0,0) outputChatBox ( "#4200FF Para ver os comandos do servidor: #ff0000 /ajuda", player, 255,0,0) end end ) so? ^^
-
enable function once the player enters the game? function vipentered( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( " ", player, 255,0,0) outputChatBox ( "#4200FF Voce e um VIP!", player, 255,0,0) outputChatBox ( "#4200FF Para ver seus comandos, use #ff0000 /ajudavip", player, 255,0,0) end end
-
meta.xml <meta> <info author="aafaahafae" version="1.0" name="vip" type="misc" /> <script src="vip.lua" type="server" /> </meta> acl.xml <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.DayZ"></object> <object name="resource.login"></object> <object name="resource.slothbot"></object> <object name="user.Devil_Dead"></object> -- My account name <object name="user.Angel_Dead"></object> <object name="user.ADHOCNEW"></object> </group> <group name="Vip"> <object name="resource.vip"></object> <object name="user.Devil_Dead"></object> <object name="user.Angel_Dead"></object> -- I add these 2 names in the file, not by command </group>
-
I can not add anyone with this command! is something wrong? function givevip (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if accountName then aclGroupAddObject (aclGetGroup("Vip"), "user."..accountName) outputChatBox ("Conta '"..accountName.."' add aos Vips com sucesso!", playerSource) else outputChatBox ("Nome incorreto", playerSource) outputChatBox ("Correto: /darvip [accountName]", playerSource) end end end addCommandHandler ("darvip", givevip)
-
so? function givekit2( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) local istrue = getElementData(player, "tempokit2") if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not istrue then giveWeapon ( player, 31, 300 ) --Give M4 giveWeapon ( player, 34, 80 ) -- Give Sniper Rifle setElementData(player, "tempokit2", true) setTimer ( function() setElementData(player, "tempokit2", false) end, 3600000, 1 ) else outputChatBox ( "#ff0000Voce tem que esperar 1 hora para poder pegar o kit novamente.", player, 255,0,0) end else outputChatBox ( "#ff0000Voce nao e um VIP!", player, 255,0,0) end end addCommandHandler("kitpremiun",givekit2)
-
Can you help me with this? I did, but neither remembered that this does not work if another player were to use the command ... function givekit2( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then if not tempokit2 then giveWeapon ( player, 31, 300 ) --Give M4 giveWeapon ( player, 34, 80 ) -- Give Sniper Rifle tempokit2 = true setTimer(set1hora,3600000,1,player) else outputChatBox ( "#ff0000Voce tem que esperar 1 hora para poder pegar o kit novamente.", player, 255,0,0) end else outputChatBox ( "#ff0000Voce nao e um VIP!", player, 255,0,0) end end addCommandHandler("kitpremiun",givekit2) function set1hora() tempokit2 = false end
-
how to create a variable only for a player that can set true or false?
-
sorry! had not seen your post before!
-
@edit No! I am making a resource to my server! so that admin can become immortal!