Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. Wei

    Medic problem

    thanks. But it doens't work 1 question more Is there anyway to remove debug. Like I have jobs on event onPlayerDamage and it allways shows error when player is damaged...
  2. local employee = nil function createEmployee( res ) employee = createPed(ID OF PED HERE, -2035.0927, -117.4863, 1035.1718) setPedRotation(employee, 0, 0, 267) setElementInterior(employee, 3) setElementDimension(employee, 6) end addEventHandler("onClientResourceStart", resourceRoot, createEmployee) You forgot to add id of ped
  3. function troll() local screenWidth,screenHeight = guiGetScreenSize() dxDrawImage ( screenWidth/2 - 50, 50, 500, 500, 'troll.jpg', 0, -120 ) end function cmd() addEventHandler("onClientRender", getRootElement(), troll) end addCommandHandler("problem",cmd) try
  4. Wei

    Medic problem

    function medicJob (theHealer, healerweapon, bodypart, loss) local theHealth = getElementHealth (source) local theSkin = getElementModel ( theHealer ) if ( getPedWeapon( theHealer ) == 41 ) and ( loss > 1 ) and ( theHealth < 90 ) and ( theSkin == 274 ) then setElementHealth ( source, 100 ) takePlayerMoney ( source, 100 ) givePlayerMoney ( theHealer, 200 ) cancelEvent() end end addEventHandler ("onPlayerDamage", getRootElement(), medicJob ) It auto heals me eaven if the healer is not player
  5. windowjob = guiMyCwindow(301,250,"Mchanic job") what is that ? Use: function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end windowjob = (0,0,301,250,"Mchanic job", false) centerWindow( windowjob )
  6. Wei

    Msg Player Problem

    Fixed but thanks
  7. Wei

    Virtual Gamerz Project

    Some pictures. They are resized to fit the forum
  8. Wei

    Virtual Gamerz Project

    RPG. It will not be eaven similar. And i'm looking for mapper, scripter and staff.
  9. Progress: 30% Hi. Now I will present you my Virtual Gamerz project. First I had SHG server and then but I ended the both projects. Now I opened new project called Virtual Gamerz ( [vG] ). What I have is a: - Scoreboard system - Services - Ammunation - Command based group system. - Jobs ( Police, Paramedic, Robber ) - Staff/Mod Panel - Login To do list: - House system - Jobs. ( Special services, pickpocket, civilian jobs( bus/truck driver, mehanic ...)) - UCP - Some little things. Like Animation gui, Bases...(for group bases will make players themself) - MUCH MORE Ill upload some pictures later. Developer is only me. If anyone wanna help me ( for free ofc ) PM here or on skype: hellobitchy1.
  10. Wei

    my Ban test

    Doesn't work Still false I have onPlayerLogin getAccountData
  11. Wei

    my Ban test

    function banThatPlayer(thePlayer, command, tPlayer, reason) local banPlayer = getPlayerFromName(tPlayer) setAccountData( getPlayerAccount( banPlayer ), "BannedReason", reason ) kickPlayer( banPlayer, "banned" ) setAccountData( getPlayerAccount( banPlayer ), "Occupation", "Banned" ) end addCommandHandler("blazyban", banThatPlayer) Why it outputs reason to false ? And how can I make more words ?
  12. Wei

    Log

    I don't want to output it to original I wanna make new one. Like staffPanel.log and then output to log staffpanel.log that player has used fix button
  13. Wei

    Log

    by port
  14. Wei

    Log

    Hi. I recently made a staff panel. And I have a question. Is it possible to add a new log ? If yes. How ? I wanna be sure what the admins are doing on my server
  15. Wei

    Police job

    addEventHandler ( "onColShapeHit" , LSPDColShape , function ( hElement , mDim ) outputChatBox("Col has been hitted", 255, 255, 255) if not mDim then return end if getElementType ( hElement ) ~= player then return end if getPlayerWantedLevel ( hElement ) < 1 then return end if not getElementData ( hElement , "Cuffed" ) then return end local player = getPlayerFromName ( getElementData ( hElement , "Handcuffer" ) ) if not player then return end local wantedLevel = getPlayerWantedLevel ( hElement ) fadeCamera(hElement, false) setTimer(setElementInterior, 1000, 1, hElement, 6) setTimer(setElementPosition, 1000, 1, hElement, 265.21185302734, 77.63591003418, 1001.0390625 ) setTimer(fadeCamera, 1000, 1, hElement, true) if settingTakePlayerWeaponsOnArrest then takeAllWeapons(hElement) end setElementData(hElement, "Arrested", true) setElementData(hElement, "Cuffed", false) setElementData(hElement, "Handcuffer", "") if wantedLevel == 1 then givePlayerMoney(player, 1000) takePlayerMoney(hElement, 5000) setElementData(hElement, "Timeleft", 30) setTimer ( releasePlayer , 30000 , 1 , hElement ) elseif wantedLevel == 2 then givePlayerMoney(player, 2000) takePlayerMoney(hElement, 8000) setElementData(hElement, "Timeleft", 60) setTimer ( releasePlayer , 60000 , 1 , hElement ) elseif wantedLevel == 3 then givePlayerMoney(player, 3000) takePlayerMoney(hElement, 10000) setElementData(hElement, "Timeleft", 120) setTimer ( releasePlayer , 120000 , 1 , hElement ) elseif wantedLevel == 4 then givePlayerMoney(player, 4000) takePlayerMoney(hElement, 12000) setElementData(hElement, "Timeleft", 180) setTimer ( releasePlayer , 180000 , 1 , hElement ) elseif wantedLevel == 5 then givePlayerMoney(player, 5000) takePlayerMoney(hElement, 15000) setElementData(hElement, "Timeleft", 200) setTimer ( releasePlayer , 200000 , 1 , hElement ) elseif wantedLevel == 6 then givePlayerMoney(player, 8000) takePlayerMoney(hElement, 20000) setElementData(hElement, "Timeleft", 240) setTimer ( releasePlayer , 240000 , 1 , hElement ) end setPlayerWantedLevel(hElement, 0) end ) whats wrong here ?
  16. Wei

    Help

    Wasn't this script allready released ?
  17. Wei

    xml problem

    Yeah It was that i had it in the xml folder. In the meta I added it but in the code i forgot. Can I ask you how did you make that blue chatbox ?
  18. Wei

    xml problem

    I've got config and replaced with file and its the same
  19. Wei

    xml problem

    <VIP> VIP </VIP> Ive made a mistake local xml3 = xmlLoadFile( "VIP.xml" ) local VIP = xmlNodeGetValue( xml3 )
  20. Wei

    xml problem

    I'm making a help panel local xml = xmlLoadFile( "staff.xml" ) local staff = xmlNodeGetValue( xml ) elseif ( source == butVIP ) then guiSetText( helpMem, VIP ) BadArgument @ guiSetText [expected string] if I add tostring VIP it returns false
  21. Wei

    Need little help

    addEventHandler ("onPlayerJoin", getRootElement(), function(thePlayer) local decoration = "================================================" outputChatBox(decoration, thePlayer, 38, 98, 188, true) outputChatBox("#ffffffWelcome to #2662bc=(RfC)= #ffffffserver", thePlayer, 38, 98, 188, true) outputChatBox("#ffffffDon't forgot to visit our webiste!", thePlayer, 38, 98, 188, true) outputChatBox("#848484www.website.eu", thePlayer, 38, 98, 188, true) outputChatBox(decoration, thePlayer, 38, 98, 188, true) end end) Try
×
×
  • Create New...