Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. How could i set maximum player amount in a team? Like for example, i created a team, and i only want that 3people would be allowed in that team, no more? thank you for the help.
  2. manve1

    Admin Panel

    Anderl, another way is to buy a scriptor that would make it for u.
  3. for some reason i don't get the skin back, the camera moves like if u would get another skin, but when i go off duty, it doesn't give my skin back
  4. manve1

    Admin Panel

    in ur mta sa 1.3 folder, find the same files containing folder .... P.S. it should be in: C:\Program Files\MTA San Andreas 1.3\skins\Default change those files to what u want them to be
  5. EDIT: doesn't give my skin back
  6. I tried making a save skin for a job, so that when i go off duty from work, i get my original skin back. e.g. if it was 27 i would get it back function use ( ) local hRow = guiGridListGetSelectedItem ( gridDuty ) if ( hRow ) then if ( isElement ( aObjects ) ) then playerSkin = getElementModel( localPlayer ) setElementData( localPlayer, "skinSave", sPlayerSkin ) end setElementModel( localPlayer, 16 ) guiSetVisible( windowDuty, false ) showCursor( false ) end end addEventHandler ( "onClientGUIDoubleClick", gridDuty, use, false ) addEventHandler('onClientGUIClick', yesOut, function() skinBack = getElementData( localPlayer, "skinSave" ) setElementModel( localPlayer, skinBack ) guiSetVisible( windowOffDuty, false ) showCursor( false ) end )
  7. manve1

    Need help!!

    i sometimes get same thing, if its on local hosted server or payed host, restart map editor, should help, P.S. this is scripting section
  8. manve1

    Need help.

    No one can help me?
  9. manve1

    Need help.

    EDIT: I mean like you go in marker, if u are in a group called "Cleaner" then a GUI pops up, if u double click the skin selection for the Duty, it will give u the skin and when u go into off duty marker and u select to go off duty, u get old skin back
  10. manve1

    Need help.

    sorry tapl, but i don't get what you mean i don't get the save part actually
  11. manve1

    Need help.

    I need help on how to get the player skin when he clicks on gridList to take the job+skin, so that when he presses on button called "yesOut" he would get his skin back
  12. USE THESE FUNCTIONS: getPlayerTeam, spawnPlayer
  13. manve1

    Got a problem.

    Probably because you aren't doing anything when it checks that. don't really get what you mean
  14. manve1

    Got a problem.

    It still doesn't make GUI visible to people that are in the acl group Admin5
  15. manve1

    Got a problem.

    oh yeh, i am, ty bro, only problem = it don't work
  16. I have a problem trying to trigger ACL functions to client side from server side. LUA - CLIENT: hWnd_Commands = guiCreateWindow( 0.2, 0.2, 0.6, 0.6, "Admin LVL.5 Commands || By Enjoy || Version 1.0", true ) hGrid_Admin = guiCreateGridList( 0.1, 0.1, 0.8, 0.6, true, hWnd_Commands ) function visibleToAdmin5(p) triggerServerEvent('aclAdmin5', root) guiSetVisible(hWnd_Commands, true) showCursor(true) end addCommandHandler('mycmds', visibleToAdmin5) addEventHandler('onPlayerLogin', getRootElement(), visibleToAdmin5) LUA - SERVER: addEvent('aclAdmin5',true) function aclAdmin5_( p ) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Admin5" ) ) then end end addEventHandler('aclAdmin5', getRootElement(), aclAdmin5_) ERRORS - PIC:
  17. what you on about? 1. Add more explanation 2. What Chinese stamps? 3. Racist to Chinese people 4. Pic or lua code would be better to understand what ur saying
  18. i don't know how to change it so it has text from the table and thx for the pointing out
  19. I need help for my script, i know i done the tonumber bit, but i don't know how to make that i get the text from table, i tried using guiGridListGetItemText, but didn't work. hWnd_Commands = guiCreateWindow( 0.2, 0.2, 0.6, 0.6, "Admin Commands", true ) hGrid_Admin = guiCreateGridList( 0.1, 0.1, 0.8, 0.6, true, hWnd_Commands ) local hGrid_Row_Admin = nil; hColumn_Admin1 = guiGridListAddColumn( hGrid_Admin, "Command", 0.4 ) hColumn_Admin2 = guiGridListAddColumn( hGrid_Admin, "Effect", 0.4 ) hColumn_Admin3 = guiGridListAddColumn( hGrid_Admin, "Additional Info", 0.4 ) local hAdmin_Commands = { 'kill "name"'; } for v in next, hAdmin_Commands do local hGrid_Row_Admin1 = guiGridListAddRow(hGrid_Admin) guiGridListSetItemText(hGrid_Admin, hGrid_Row_Admin1, hColumn_Admin1, tonumber(v), false, false) end
  20. manve1

    problem

    i have a problem on my script which i don't know how to fix. chat_range=9999 addEventHandler("onPlayerJoin",getRootElement(), function (p) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Admin" ) ) then bindKey(source,"u","down","chatbox","GOOC") end end) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function (p) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Admin" ) ) then for index, player in pairs(getElementsByType("player")) do bindKey(player,"u","down","chatbox","GOOC") end end end) function isPlayerInRangeOfPoint(player,x,y,z,range) local px,py,pz=getElementPosition(player) return ((x-px)^2+(y-py)^2+(z-pz)^2)^0.5<=range end function onChat(player, p, _, ...) if isObjectInACLGroup ( "user." ..getAccountName ( getPlayerAccount ( p ) ), aclGetGroup ( "Admin" ) ) then local px,py,pz=getElementPosition(player) local msg = table.concat({...}, " ") local nick=getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) for _,v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v,px,py,pz,chat_range) then outputChatBox("(GOOC) ".. nick ..": "..msg,v,r,g,b,true) end end end end addCommandHandler("GOOC",onChat) P.S. This script is taken from community
  21. [admin]/admin.zip/client/gui/admin_main.lua /\ i think you are thinking about this, but if i was you, i would make new one.
  22. manve1

    [Car security]

    what you mean by this?
  23. manve1

    Object id's

    mate posting what you actually need would be better, or a problem even, not just "?????????????????" P.S. Yes i counted all "?"
×
×
  • Create New...