
Fantanic
Members-
Posts
160 -
Joined
-
Last visited
Everything posted by Fantanic
-
Anyone? EDIT ; Also if posible wich function do i need to use to get the users into the gridlist?
-
Thanks , I've got a other problem i guess ; addCommandHandler("aclObjectList",function(player,command,aclGroup) local ADMIN_GROUP = "Admin" if(aclGroup~="")then table = aclGroupListObjects(aclGetGroup(ADMIN_GROUP)) count = 0 for objects,name in pairs(table)do outputChatBox("ACL LIST: "..aclGroup.." #"..tostring(count).." Object: "..name..".",player) count = count + 1 end else outputChatBox("Please add the aclGroup you want the list of.",player) outputChatBox("Syntax: /aclObjectList aclGroup",player) end end) (i want it so it only takes the ACL 'Admin' )
-
Im trying to make an bankrob . But i want it so whos robbing that they gain the money and not the others for example player 1 - player 10 is in bankrob robbing and player 11 isnt inside the bank so only player 1- player 10 should get money and not player11. (if posible all the people who are in the team Criminals inside the bank gets the money) second anyway to get the max amount working on topbarchat script on the communty?
-
Hello , First of all i got a lil problem with a new chatbox (top bar). When u type 'T' after a time if u put so much words u got 2 lines. Well if i put "too much" words its only in 1 line so it 'f*cks up'. So i want it if i put (amount) of words that it goes to the second line if i reach it for example i say : teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest ^ this stays on 1 line but i want it on 2 lines so it doesnt look f*cked up : teeeeeeeeeeeeeeeeeee eeeeest (for example) Second , Whats the function to get the players who are inside a interior? (edit they need to be in the team 'criminals' but i only want to take the players who are inside there) Sorry for bad english
-
Any Idea how to get it working for 'Limo Driver' for example? it doesnt read the name if there are any spaces example : Limo Driver = { createVehicle( 416, 2036.0000000, -1426.9000200, 17.3000000, 0.0000000, 245, 245, 15 ), -- Ambulance createVehicle( 416, 2036.1999500, -1437.1999500, 17.6000000, 0.0000000, 245, 245, 15 ), -- Ambulance createVehicle( 416, 2018.5000000, -1409.9000200, 17.3000000, 272.2500000, 245, 245, 15 ), -- Ambulance createVehicle( 416, 1179.8000500, -1338.9000200, 14.1000000, 270.0000000, 245, 245, 15 ), -- Ambulance createVehicle( 416, 1179.1999500, -1309.4000200, 14.1000000, 270.0000000, 245, 245, 15 ) -- Ambulance }, (just copied emergency a second) It creates the limos but doesnt loc them
-
wait im totaly confused now (i used other code as u seen) so what i have to do so it only checks if hes in the class and not in the ACL and also i wanna add ; if ( seat ~= 0 ) then edit it doesnt seem to lock also
-
Dont i have to add ; setElementData(isVehicleOnList, "class", "Paramedic") this if i want to lock it all to 'Paramedic' classe?
-
Any idea why this doesnt work if i got multiple cars on the same name? : vehicle9 = createVehicle(448,2097.8999000,-1801.8000500,13.1000000,88.0000000,132,4,15)-- //Pizzaboy vehicle9 = createVehicle(448,2097.6999500,-1800.0000000,13.1000000,87.9950000,132,4,15)-- //Pizzaboy vehicle9 = createVehicle(448,2097.6001000,-1798.0999800,13.1000000,87.9950000,132,4,15)-- //Pizzaboy vehicle9 = createVehicle(448,2097.5000000,-1796.0000000,13.1000000,87.9950000,132,4,15)-- //Pizzaboy vehicle9 = createVehicle(448,2097.6999500,-1793.4000200,13.1000000,87.9950000,132,4,15)-- //Pizzaboy vehicle9 = createVehicle(416,2036.0000000,-1426.9000200,17.3000000,0.0000000,245,245,15)-- //Ambulance vehicle9 = createVehicle(416,2036.1999500,-1437.1999500,17.6000000,0.0000000,245,245,15)-- //Ambulance vehicle9 = createVehicle(416,2018.5000000,-1409.9000200,17.3000000,272.2500000,245,245,15)-- //Ambulance vehicle9 = createVehicle(427,1530.7099600,-1645.5000000,6.1000000,180.0000000,-1,-1,15)-- //Enforcer vehicle9 = createVehicle(427,1538.6992200,-1645.5000000,6.1000000,180.0000000,-1,-1,15)-- //Enforcer vehicle9 = createVehicle(490,1543.8994100,-1663.0996100,6.2000000,90.0000000,-1,-1,15)-- //FBI Rancher vehicle9 = createVehicle(490,1543.8994100,-1667.5000000,6.2000000,90.0000000,-1,-1,15)-- //FBI Rancher vehicle9 = createVehicle(490,1543.8994100,-1655.0996100,6.2000000,90.0000000,-1,-1,15)-- //FBI Rancher vehicle9 = createVehicle(490,1543.8994100,-1659.1992200,6.2000000,90.0000000,-1,-1,15)-- //FBI Rancher vehicle9 = createVehicle(596,1590.9000200,-1708.5999800,5.7000000,0.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1587.0000000,-1708.5999800,5.7000000,0.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1583.0999800,-1708.5999800,5.7000000,0.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1594.9000200,-1708.5999800,5.7000000,0.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1599.8000500,-1684.3000500,5.7000000,90.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1599.8000500,-1688.0000000,5.7000000,90.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1599.8000500,-1691.5999800,5.7000000,90.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(596,1599.8000500,-1695.9000200,5.7000000,90.0000000,-1,-1,15)-- //Police Car (LSPD) vehicle9 = createVehicle(402,1063.0999800,-1758.5000000,13.4000000,90.0000000,105,30,15)-- //Buffalo vehicle9 = createVehicle(402,1062.5999800,-1737.6999500,13.4000000,90.0000000,105,30,15)-- //Buffalo vehicle9 = createVehicle(402,1063.0000000,-1767.0000000,13.3000000,90.0000000,105,30,15)-- //Buffalo vehicle9 = createVehicle(559,311.7000100,-1808.8000500,4.2000000,0.0000000,170,173,15)-- //Jester vehicle9 = createVehicle(424,318.0000000,-1808.1999500,4.3000000,0.0000000,81,84,15)-- //BF Injection vehicle9 = createVehicle(416,1179.8000500,-1338.9000200,14.1000000,270.0000000,245,245,15)-- //Ambulance vehicle9 = createVehicle(416,1179.1999500,-1309.4000200,14.1000000,270.0000000,245,245,15)-- //Ambulance vehicle9 = createVehicle(420,1674.8000500,-1097.4000200,23.8000000,90.0000000,215,142,15)-- //Taxi vehicle9 = createVehicle(420,1674.8000500,-1102.0999800,23.8000000,90.0000000,215,142,15)-- //Taxi vehicle9 = createVehicle(420,1674.8000500,-1106.9000200,23.8000000,90.0000000,215,142,15)-- //Taxi vehicle9 = createVehicle(420,1674.8000500,-1115.5000000,23.8000000,90.0000000,215,142,15)-- //Taxi vehicle9 = createVehicle(420,1674.8000500,-1125.0000000,23.8000000,90.0000000,215,142,15)-- //Taxi vehicle9 = createVehicle(438,1674.8000500,-1111.4000200,24.1000000,90.0000000,215,142,15)-- //Cabbie vehicle9 = createVehicle(438,1674.8000500,-1120.3000500,24.1000000,90.0000000,215,142,15)-- //Cabbie vehicle9 = createVehicle(438,1674.8000500,-1129.3000500,24.1000000,90.0000000,215,142,15)-- //Cabbie vehicle9 = createVehicle(550,2148.5000000,-1194.1999500,23.8000000,270.0000000,124,28,15)-- //Sunrise vehicle9 = createVehicle(550,2148.6001000,-1179.9000200,23.7000000,270.0000000,124,28,15)-- //Sunrise vehicle9 = createVehicle(576,2161.6001000,-1187.5999800,23.6000000,270.0000000,32,32,15)-- //Tornado vehicle9 = createVehicle(576,2162.1001000,-1196.9000200,23.6000000,270.0000000,32,32,15)-- //Tornado vehicle9 = createVehicle(487,2078.6001000,-1430.9000200,48.6000000,90.0000000,251,3,15)-- //Maverick vehicle9 = createVehicle(487,2078.3999000,-1412.8000500,48.6000000,90.0000000,251,3,15)-- //Maverick function lockPrivate( player, seat, jacked ) if ( source == vehicle9 ) then local account = getPlayerAccount( player ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "admin" ) then cancelEvent() outputChatBox("This vehicle is locked for following users:Jonas13362 ", player, 255, 0, 0, false) else end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) -----Made by Alen141(ingame name:Jimboy)------ -----Special thanks to : Solidsnake14(ingame name:Castillo)----- -----Visit SAUR Utopia RPG, IP: 128.204.203.103:22003----- -----Feel free to edit script on your own----- -----Don't remove credits-----
-
Thank you , im going to use ETL (seems its the best for me) i dont get this one by the way
-
is there anyway to make it faster? since i got to copy and paste the coords all the time to the file
-
I never asked to create vehicles in lua better read the description next time i asked for locking a car in .map files
-
Hello , I wanna lock the cars from .map file (like if u place the cars with map editor) that they will be locked to the team given in the script. So it got to get the vehicles from .map and then lock the vehicles to team? but how? Greetings
-
Hello , I got a VPS of 128 MB RAM and 256MB swap 10gb disk size So my question is how much slots can i run without much lagg? My excuse if im in the wrong forum Oh and also sometimes if im in admin panel it shows my bind for example if i press '1' then there comes hello in chat any way to fix it? Greetings , Jonas
-
It didnt worked , i dont rlly think 'amount' is defined? but its showing in tab but the stars arent showing up Solved Thanks
-
Thanks it works but is it posible to add a exported function for setting the wantedlevel? Cause im using it if ur wanted the stars get up but now u only see it in tab that u are wanted.(it works it detects ur wanted but the stars arent coming up) example : function savewanted() local playeraccount = getPlayerAccount(source) if playeraccount and not isGuestAccount(playeraccount) then local wanted = getElementData(source, "wanted") if wanted then setAccountData(playeraccount, "wanted", wanted) end end end addEventHandler("onPlayerQuit", getRootElement(), savewanted) function loadwanted(_, playeraccount) local wanted = getAccountData(playeraccount, "wanted") if (wanted) then setElementData(source, "wanted", wanted) end setPlayerWanted(source,amount) end addEventHandler("onPlayerLogin", getRootElement(), loadwanted)
-
Jep here is the meta :
-
Like this? or do i have to add the setwantedlevel or? function savewanted() local user = getPlayerFromName(player) getElementData(user,"wanted") local playeraccount = getPlayerAccount ( source ) setAccountData ( playeraccount, "wanted", wanted ) end addEventHandler("onPlayerQuit", getRootElement(), savewanted) function loadwanted (_, playeraccount) local playerAccount = getPlayerAccount(source) -- get his account if ( playerAccount ) then local wanted = getAccountData(playerAccount, "wanted") if (wanted) then end end end addEventHandler("onPlayerLogin", getRootElement(), loadwanted)
-
Thank you i wil try it
-
Hello. I got a little problem , im trying to save an elementdata and load it on playerLogin. The elementdata is 'wanted' . Thank you
-
Thank you i also want to add to put them in the team 'staff' (the team is already created) : playerTeam = getPlayerTeam ( "staff" ) setPlayerTeam ( player, playerTeam )