Jump to content

tim260

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by tim260

  1. thanks but one more thing how can i make the with higher because when i type something long i cant read the whole thing EDIT : SOLVED EDIT 2 : is it true you can only edit the role once ?
  2. account names ofc EDIT: but like i sad i dont understand the sql functions and events
  3. first off this script is a mess i know because i dont understand. What im trying to do is creating a table with roles defined to each user and output them in the dxscoreboard. But i cant let it work and if someone has time is there an way to do like : /addrole tim260 role, and when you do that it writes it in the table. this is what i got ( doesnt work and doesnt create table it sucks ) call(getResourceFromName("dxscoreboard"), "addScoreboardColumn", "Role", getRootElement(), 8, 0.07)function getan() local players = getElementsByType ( "player" ) executeSQLCreateTable("Roles-test", "Role TEXT,Username TEXT" ) result = executeSQLSelect ( "Roles-test", "Role" ) setElementData ( thePlayer, "Role", "ddd" ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), getan )
  4. hmm doesnt work EDIT: bout the last resource anyway i could let them spawn whit a skin i define ?
  5. lolz maybe you should contact the designer and tell him hes stupid btw im using your gang sytem people are talking bout a managment panel how do i open it ?
  6. im stil getting the message your moved but im not so i can edit this my own EDIT : i got it right thank you very much
  7. sorry solid lock the team selection, The acl group is named like the team so if i want to join pilot team i can only if im in the acl group pilot
  8. its from this resource https://community.multitheftauto.com/index.php?p= ... ls&id=2685
  9. its from a resource teams are created in a other script please this wont work let someone else look at it
  10. thats already done dont mind that im just asking am i using else and end etcgood ?
  11. Hello people can you find my mistake on the followingg its not showing like your not in this team in the chat addEvent ( "onPlayerChooseTeam" , true ) addEventHandler ( "onPlayerChooseTeam" , root , function ( teamName ) local team = getTeamFromName ( teamName ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "getTeamFromName" ) ) then setPlayerTeam ( source , team ) outputChatBox("You have successfully been moved to "..getTeamName(team).." Team.", resPlayer, root, 0, 255, 0) else ) outputChatBox ( "Your not in this team") end end )
  12. How can i set it to respawn exploded cars who where made in the editor, so are set in the .map file now it only respawns if they are onoccupied
  13. WARNING: politienl\carpack.lua:3: Bad txd pointer @ engineImportTXD(1) WARNING: Loading script failed: politienl\carpack.lua:3: unfinished string near "", 280 )
  14. i had that before also didnt work
  15. hello, i used this before but now it isnt working what am i doing wrong ! function rplaceModel() txd = engineLoadTXD("skins/lapd1.txd", 280 ) engineImportTXD("skins/lapd1.txd", 280 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), rplaceModel) addCommandHandler ( "reloadskin", rplaceModel )
  16. still i cant get it to work
  17. i was searching for a script but i couldnt get it to work, i found this (©solidsnake14) --client function startSirene ( vehicle ) local x,y,z = getElementPosition( vehicle ) sound = playSound3D( "sons\\sirene1.wav", x, y, z, true) attachElements ( sound, vehicle) end addEvent( "startSirene", true ) addEventHandler("startSirene", getRootElement(), startSirene) function stopSirene() destroyElement(sound) end addEvent( "stopSirene", true ) addEventHandler("stopSirene", getRootElement(), stopSirene) --server function startSirene( player, cmd ) local commandant = createVehicle ( 554, 1227.746, -1422.281, 13.5432, 0, 0, 0, "COMM1" ) triggerClientEvent ( player, "startSirene", getRootElement(), commandant ) end addCommandHandler ( "sireneon", startSirene) function stopSirene( player, cmd ) triggerClientEvent ( player, "stopSirene", getRootElement() ) end addCommandHandler ( "sireneoff", stopSirene) but cant get it to work ;/ EDIT: and dont understand it fully
  18. none just not working
  19. you will have to make a example script first, and not just like: Hey guys kiis my ass ? thankyou !.
  20. I thought about restricting gates to ACL but what is wrong with this cuz it doesnt work, gate1 = createObject ( 2990, 1269.8000488281, -1842.1999511719, 16.299999237061, 0, 0, 0.5 ) col = createColCircle (1269.8000488281, -1842.1999511719, 16.299999237061, 3 ) local accountname = getAccountName (getPlayerAccount(player)) function opena51gates(thePlayer) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then moveObject (gate1, 500, 1278.5, -1842.0999755859, 16.299999237061 ) end end addEventHandler( "onColShapeHit", col, opena51gates ) function closea51gates(thePlayer) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then moveObject (gate1, 500, 1269.8000488281, -1842.1999511719, 16.299999237061 ) end end addEventHandler( "onColShapeLeave", col, closea51gates )
  21. 2 errors @ getplayeraccount and @ getaccountname EDIT : thats only when i start it, when i walk in the marker i get : attempt to concatenate upvalue "account" < a boolean valeu>
  22. can somebody say whats wrong with this ? local militaryMarker = createMarker(1552.33, -1605.37, 12.5, 'cylinder', 2.0, 0, 0, 255, 150 ) local account = getAccountName(getPlayerAccount(player)) function militaryMarkerHit ( hitElement, matchingDimension ) if isObjectInACLGroup("user." .. account, aclGetGroup("Military")) then setElementModel(player, 286) giveWeapon ( player, 31, 80000 ) outputChatBox("You are now working as military", player, 0, 255, 0, false) else outputChatBox("You must be in the military group to use this command!", player, 255, 0, 0, false) end end addEventHandler( "onMarkerHit", militaryMarker , militaryMarkerHit ) Ps: i get an error when walking in to the marker
  23. Yeah and i have found a way of paying wil edit this post later this day EDIT : http://www.paysafecard.com with this , it works in a lot of countries if you want to help and dont like this way tell me and we will think of something else
  24. Yeah i still have to look about how im gonna pay because im not in the paypall shit etc. i have the cash in cash yk ?
×
×
  • Create New...