Jump to content

TheIceman1

Members
  • Posts

    296
  • Joined

  • Last visited

Everything posted by TheIceman1

  1. I need mapper for my RPG server,pm me if you are interested!
  2. GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Column = {} GUIEditor_Window[1] = guiCreateWindow(311,117,490,467,"SACR Weapon shop",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Grid[1] = guiCreateGridList(10,29,469,393,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Column[1] = guiGridListAddColumn(GUIEditor_Grid[1],"Weapon name:",0.6) GUIEditor_Column[2] = guiGridListAddColumn(GUIEditor_Grid[1],"Slot:",0.2) GUIEditor_Column[3] = guiGridListAddColumn(GUIEditor_Grid[1],"Price:",0.2) GUIEditor_Button[1] = guiCreateButton(9,430,228,27,"Buy",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(248,430,228,27,"Close",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(350,223,376,205,"SACR Weapon licence",false) guiSetVisible(GUIEditor_Window[2], false) GUIEditor_Label[1] = guiCreateLabel(9,22,352,129,"If you want buy weapons,you must have licence!Licence price:$25.000.",false,GUIEditor_Window[2]) GUIEditor_Button[3] = guiCreateButton(16,165,152,29,"Buy licence",false,GUIEditor_Window[2]) GUIEditor_Button[4] = guiCreateButton(196,165,152,29,"Close",false,GUIEditor_Window[2]) local weaponsTable = { {"Sniper",10,1200} } function setweps () for k, v in pairs(weaponsTable) do for index, weapon in pairs(v) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, tostring(weapon[1]), false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 2, tostring(weapon[2]), false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 3, tostring(weapon[3]), false, true) end end end addEventHandler ( "onClientResourceStart", getThisResource(), setweps )
  3. Why this dont show me weapons on gridlist? local weaponsTable = { {"Sniper",10,1200} } function setweps () for index, weapon in pairs(weaponsTable) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, tostring(weapon[1]), false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 2, tostring(weapon[2]), false, true) guiGridListSetItemText (GUIEditor_Grid[1], row, 3, tostring(weapon[3]), false, true) end end addEventHandler ( "onClientResourceStart", getThisResource(), setweps )
  4. Why this dont show me Licence GUI(showWepsLWindow)? Server: function showWepslicgui ( uPlayer ) account = getPlayerAccount( uPlayer ) if(getAccountData(account, "licence") == false) then triggerClientEvent ( uPlayer, "showWepsLWindow", uPlayer ) end end addEventHandler ( "onMarkerHit", guimarkerwep, showWepslicgui ) function weplicence() money = getPlayerMoney(source) account = getPlayerAccount(source) local price = "25000" if(getAccountData(account, "licence") == false) then if(money >= tonumber(price)) then setAccountData(account, "licence", true) takePlayerMoney(source, tonumber(price)) exports ["guimessages"] : outputServer ( source, "You bought weapon licence,now you can buy weapons!" , 255, 255, 0 ) else exports ["guimessages"] : outputServer ( source, "You don't have enought money!" , 255, 255, 0 ) end end end addEvent("setlic", true) addEventHandler("setlic", getRootElement(), weplicence) function showWepsgui () account = getPlayerAccount(source) if ( getAccountData( account, "licence" ) == true ) then triggerClientEvent ( source, "showWepsWindow", source ) end end addEventHandler ( "onMarkerHit", guimarkerwep, showWepsgui )
  5. But again nothing happens. function data (playerNameD) local player = getPlayerFromName ( playerNameD ) local teamname = getPlayerTeam ( player ) local team = getTeamName ( teamname ) setElementData ( player, "teamname", teamname ) local wl = getPlayerWantedLevel ( player ) setElementData ( player, "wantedl", tonumber(wl) ) end addEventHandler ( "onResourceStart", getThisResource(), data )
  6. Why this dont show me wanted level of player? Server: function data (playerNameD) local player = getPlayerFromName ( playerNameD ) local teamname = getPlayerTeam ( player ) local team = getTeamName ( teamname ) setElementData ( player, "teamname", teamname ) local wl = getPlayerWantedLevel ( player ) setElementData ( player, "wantedl", tonumber(wl) ) end Client: function setplayerinf ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row and col and row ~= -1 and col ~= -1 ) then local playerName = guiGridListGetItemText ( GUIEditor_Grid[1], row, 1 ) local player = getPlayerFromName ( playerName ) if ( player ) then local name = getPlayerName( player ) local team = getPlayerTeam ( player ) local tname = getTeamName ( team ) local role = getElementData( player, "Role" ) local gang = getElementData ( player, "gang" ) local wl = getElementData ( player, "wantedl" ) guiSetText ( GUIEditor_Label[1], "Name:"..name ) guiSetText ( GUIEditor_Label[2], "Team:"..tname ) guiSetText ( GUIEditor_Label[2], "Wanted level:"..wl ) guiSetText ( GUIEditor_Label[3], "Role:"..role ) guiSetText ( GUIEditor_Label[6], "Gang:"..gang ) end end end addEventHandler ( "onClientGUIClick", GUIEditor_Grid[1], setplayerinf, false )
  7. Configuration: ------------------------------------------------------------------------------------ -- PROJECT: N/A -- DEVELOPERS: Sebbe -- RIGHTS: All rights reserved by developers ------------------------------------------------------------------------------------ dataToFindPlayersJob = "Team" vehicles = { {Roles = "Police", vehicles = {1337, 1338}, x = 1337, y = -1337, z = 36.5, rotation = 25, r = 250, g = 250, b = 250, vehR = 0, vehG = 0, vehB = 0}, } You must change "dataToFindPlayersJob" from "Occupation" to "Team"
  8. How to edit scoreboard?
  9. How i can set team to invisible(on scoreboard)?
  10. Only legal system,and save_system.
  11. I didnt use "fadeCamera" anywhere,only in "login panel".The problem occurs when I die then shows me "matrixCamera" on 1 sekundu, then spawn me at Jefferson Hospital, and after 10 seconds it spawn me at allsaints hospital.
  12. But whats name of resource,taht respawn you at jefferson hospital?
  13. Yes,when i die then im respawned at jefferson hospital,then for 10 sec im spawned at all saints.
  14. But it shows me the "Matrix Camera" only for 1 sec.
  15. Hello,i have problem with admin panel,All players can open the admin panel,but they dont have this permission.How to fix it?
  16. When i die then it show me "matrixCamera" only for 1 sec,and when i respawn then it showing me "fadeCamera.Understand?
  17. Why this show me "matrix camera" when im killed only to 1 second,and when i respawn then this show me "fadeCamera"? function allsaints () if ( isElementWithinColShape ( source, allsaintsC ) ) then fadeCamera( source, true ) setCameraMatrix( source, 1468.8785400391, -919.25317382813, 100.153465271, 1527.7, -1685.8, 99.881813049316 ) setTimer(setElementPosition, 10000, 1, source, 1178.51, -1324.44, 14.13 ) setTimer ( fadeCamera, 10000, 1, source, false ) end end addEventHandler ( "onPlayerWasted", root, allsaints )
  18. TheIceman1

    Respawn

    Why this dont respawn me to this position? function allsaints ( thePlayer ) if ( isElementWithinColShape ( thePlayer, allsaintsC ) ) then setTimer(setElementPosition, 10000, 1, thePlayer, 1178.51, -1324.44, 14.13 ) end end addEventHandler ( "onPlayerWasted", root, allsaints )
×
×
  • Create New...