Jump to content

sckatchof

Members
  • Posts

    394
  • Joined

  • Last visited

Everything posted by sckatchof

  1. He didn't put that, you are giving him wrong information. @sckatchof: You must add the resource to the "acl.xml", "Admin" group. thank you snake for help it still dont work
  2. and can u help me to fix it ?
  3. you said what you put !! and my problem i have bad argument lien 7 8 and 9 this lien addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local ip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end )
  4. change this .. .. function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end ) with this function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) getPlayerIP ( getPlayerIP ( playerName ) ) getPlayerIP ( getPlayerIP ( IP ) ) getPlayerSerial ( getPlayerSerial ( serial ) ) getAccountName ( getPlayerAccount ( account ) ) end
  5. thank you for help but dont work some problem
  6. this all my script : Client side : addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GridListePlayer ) then local col = guiGridListGetSelectedItem ( GridListePlayer ); if ( col and col ~= -1 ) then local playername = guiGridListGetItemText ( GridListePlayer, col, 1 ); triggerServerEvent ( 'triggerData', localPlayer, playername ); end end end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( player, ip, serial, account ) guiSetText ( LabelName, "Name : " .. tostring ( player ) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring ( ip ) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring ( serial ) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring ( account ) .." " ); triggerServerEvent ( 'ListInfo', localPlayer, player, ip, serial, account ); end ) server side : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end ) addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( playerName ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( player ); local playerSerial = getPlayerSerial ( player ); local accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( source, 'setText', source, playerName, ip, playerSerial, accountname ); end )
  7. sckatchof

    Need help

    hi guys i have a probel when i select a player from gridList it show like this Name : Sckatchof Ip : nil Serial : false (sometimes it show) account Name : sckatchof (sometimes it show) bad argument @ line 7 , 8 , 9 part of server side : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) local accountname = getAccountName ( getPlayerAccount ( account ) ) end )
  8. sckatchof

    gui

    if you want a picture in gui use this guiCreateStaticImage @ Draken but he want just the image show not gui i think
  9. sckatchof

    gui

    use this DxDrawImage wiki : https://wiki.multitheftauto.com/wiki/DxDrawImage
  10. GanJaRuleZ you have Syntax Error the end line 12 Server side : addCommandHandler("r", fbir) function fbir( thePlayer,_,text ) local text = table.concat( text, " " ) local name = getPlayerName( thePlayer ) local team = getPlayerTeam if ( team == "FBI" ) then local players = getPlayersInTeam ( team ) outputChatBox ("(FBI RADIO) "..name .." says: "..text , players, 0, 0, 205, true) end end
  11. try this function fbir( thePlayer,_,text ) local theTeam = getTeamFromName ( teamName ) local text = table.concat( {text}, " " ) local name = getPlayerName( thePlayer ) for players, players in pairs( getPlayersInTeam ( FBI ) ) do outputChatBox ("(FBI RADIO) "..tostring( name ).." says: "..tostring( text ), players, 0, 0, 205, true) end end addCommandHandler("r", fbir)
  12. try this server side: addEventHandler ("onMarkerHit", getRootElement(), function( hitPlayer ) if ( source == clubMarker ) then if (getElementType(hitPlayer) == "vehicle") then setElementInterior( hitPlayer, 2, 1204.9, -10.5, 1000.9 ) triggerClientEvent( "onElementClub", hitPlayer ) toggleControl( hitPlayer, "fire", false ) elseif ( source == clubMarker2 ) then setElementInterior( hitPlayer, 0, 2421.5, -1223.9, 25.3 ) triggerClientEvent( "onElementClub", hitPlayer ) toggleControl( hitPlayer, "fire", true ) end end end )
  13. thank you snake for help it just col
  14. thank you guys for help and this is server side server : addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) -- something with playerName -- something with ip -- something with serial -- something with account end ) addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( row, player ) playerip = getPlayerIP ( player ); playerSerial = getPlayerSerial ( player ); accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( 'setText', source, player, ip, playerSerial, accountname ); end ) and what i put in that lines -- something with playerName -- something with ip -- something with serial -- something with account this ? local thePlayer = getPlayerFromName ( playerName ) local theIp = getPlayerIP ( playerName ) local theSerial = getPlayerSerial( playerName ) local theAccountName = getPlayerSerial( playerName ) and this client addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GridListePlayer ) then local row, col = guiGridListGetSelectedItem ( GridListePlayer ); if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GridListePlayer, row, 1 ); triggerServerEvent ( 'triggerData', localPlayer, row, playername ); end end end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( player, ip, serial, account ) guiSetText ( LabelName, "Name : " .. tostring(player) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring(ip) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring(serial) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring(account) .." " ); triggerServerEvent ( 'ListInfo', localPlayer, player, ip, serial, account ); end )
  15. thank you guys for help and how can i check if i select player from gridlist i try to do it but i can't
  16. sckatchof

    need help.

    hi guys i have probelm when i select a player from gridlist nothing it show in labels this is my script client side : function info ( ) local row = guiGridListGetSelectedItem ( GridListePlayer ) playername = guiGridListGetItemText ( GridListePlayer, row, 1) playerip = getPlayerIP ( localPlayer ) playerSerial = getPlayerSerial() accountname = getAccountName() guiSetText ( LabelName, "Name : " .. playername .. " " ) guiSetText ( LabelIp, "IP : " ..playerip .." " ) guiSetText ( LabelSerial, "Serial : " ..tostring(playerSerial) .." " ) guiSetText ( LabelAccountName, "Account Name : " ..accountname .." " ) triggerServerEvent ( "ListInfo", localPlayer, playername, playerip, playerSerial, accountname ) end Server Side : addEvent ( "ListInfo", true ) addEventHandler ( "ListInfo", root, function ( playerName ) local thePlayer = getPlayerFromName ( playerName ) local theIp = getPlayerIP ( playerName ) local theSerial = getPlayerSerial( playerName ) local theAccountName = getPlayerSerial( playerName ) end )
  17. thank you snake work no this small part
  18. Thank you for help but still have some probelm. this script for admin panel.
  19. sckatchof

    HUD GUI

    You can do it by yourself.
  20. you mean client side : function informations() local rowindex, columnindex = guiGridListGetSelectedItem ( GridListePlayer ) playername = guiGridListGetItemText ( GridListePlayer, rowindex, 1) guiSetText ( LabelName, "Name : " .. playername .. " " ) triggerServerEvent("informations", localPlayer, targetsource, playername) end
  21. sckatchof

    Need help

    hi guys i have a small problem WARNIG .... Bad arugement @' getPlayerFromName server side : function listinfo (theAdmin, command, targetsource) local thePlayer = getPlayerFromName(targetsource) end addEvent("informations", true) addEventHandler("informations", getRootElement(), listinfo)
  22. when i open gui setElementData ( localPlayer, "oldteam", getTeamName ( localPlayer ) , true )
×
×
  • Create New...