Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. Wei

    Doesn't work

    now it says none
  2. Wei

    Doesn't work

    Here I have scoreboar role show script. but it doesn't work... No debug errors or anything: CODE: exports [ 'scoreboard' ]:addScoreboardColumn ( 'Role' ) addEventHandler ( 'onPlayerLogin', root, function ( _, uAccount ) local group = 'None' local playerTeam = getTeamFromName ( source ) if ( playerTeam == Police ) then group = 'Police Officer' elseif ( playerTeam == Staff ) then group = 'Staff Member' elseif ( playerTeam == Criminal ) then group = 'Criminal' elseif ( playerTeam == Military ) then group = 'Solider' end setElementData ( source, 'Role', group ) end )
  3. Can I suggest for fixing the bug when you look images. This banners are over the image...
  4. Test the script then comment ! You didn't eaven test it ! Cuz it works perfectly! @Mefisto_PL I have it allready. Thanks anyway!
  5. I don't know a shit of Lua and you don't know a shit of helping people ( I would be ashamed if I had 1400 post and all post without help.)I'm sure that in 1400 posts you didn't help eaven 2 people! If I would have that much post I would be a better Than you in helping and stuff like that!
  6. Can Mod / Admin please lock this topic ? It makes me crazy when this Darken is typing funny things. Can't you read ? THIS SCRIPT IS WORKING PERFECTLY!! AND THANKS TO SEB !! And I wanna see your server if it's better than sebs one wich is still in development!!
  7. I don't care what's that. It works perfectly for me !!!! Thanks Seb!
  8. Ok here is my script but it is ticking on season but when player login doesn't get the time back My Script: (PS. It's my first time working with saving) function onResourceStart() call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Online Time") end addEventHandler("onResourceStart",resourceRoot,onResourceStart) function joinTime() setElementData (source, "joinTime", getTickCount() ) setElementData (source, "Online Time", "0 :, 0 :, 0 " ) end addEventHandler ( "onPlayerJoin", root, joinTime ) function all() for index , player in ipairs ( getElementsByType ( "player" ) ) do local s = getElementData(player,"joinTime") or getTickCount() s = (getTickCount() - s) / 1000 local string = string.format("%02d : %02d : %02d ", s/3600, s%3600/60, s%60) setElementData(player,"Online Time",string) end end setTimer(all,1000,0) function fSaveManager ( ) getElementData(player,"Online Time",string) end addEventHandler ( 'onPlayerLogin', root, fSaveManager )
  9. Wei

    md5 + Trigger

    bool outputChatBox ( string text [, element visibleTo=getRootElement(), int r=255, int g=255, int b=255, bool colorCoded=false ] )
  10. Wei

    Question

    Does anyone knows whats the name of resource when admin clicks jump 2 times he can fly with animation of paraschute fall ? I've saw that on shodown or something like that Roleplay
  11. i'm asking again for resource that detects how much time did you play on server. I was looking at he search line but i only find season time online. Please help
  12. Wei

    Some help

    Thanks man !
  13. Wei

    Some help

    Thanks. Solved that. I didn't want to open new post so i'm asking here. Why it doesn't open the window? window = guiCreateWindow(325,111,482,473,"SHG User Panel",false) guiWindowSetSizable(window,false) grid1 = guiCreateGridList(242,30,228,347,false,window) guiGridListSetSelectionMode(grid1,2) guiGridListAddColumn(grid1,"Player Name",0.2) guiGridListAddColumn(grid1,"Wanted",0.2) guiSetAlpha(grid1,0.69999998807907) pinunpinplayer = guiCreateButton(250,392,215,69,"Pin / Unpin Player",false,window) EDchat = guiCreateButton(22,33,210,69,"Enable / Disable Chat",false,window) becomecivilanB = guiCreateButton(24,270,210,69,"Become civilan",false,window) suicideB = guiCreateButton(25,192,210,69,"Suicide",false,window) EDhud = guiCreateButton(23,112,210,69,"Enable / Disable Hud",false,window) shglabel = guiCreateLabel(57,372,138,61,"SHG",false,window) guiSetFont(shglabel,"sa-gothic") function resourceStart () bindKey ("F4", "down", menuShow) end addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) function menuShow () visableornot = guiGetVisible (window) if (visableornot == true) then guiSetVisible (window, false) showCursor (false) end if (visableornot == false) then guiSetVisible (window, true) showCursor (true) end end
  14. Wei

    Some help

    Now it gives me 3000$ why ? (FIXED) But there is 1 bug more. When Player is in the car it doesn't Repair car. But gives me money.
  15. Wei

    Some help

    Doesn't work. Server: function givemoney(thePlayer) givePlayerMoney( thePlayer, 1000 ) end addEvent( "givemoney", true ) addEventHandler( "givemoney", thePlayer, givemoney ) Client function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 41 and hitElement and getElementType(hitElement)=="vehicle") then if getElementHealth(hitElement) >= 1000 then return end setElementHealth(hitElement, getElementHealth(hitElement)+100) triggerServerEvent ( "givemoney", getLocalPlayer()) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc )
  16. Wei

    Some help

    givePlayerMoney You've helped me a lot!
  17. Wei

    Some help

    Hi. How can I add here when player repair car he will get 1000$ CODE: function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if (weapon == 41 and hitElement and getElementType(hitElement)=="vehicle") then if getElementHealth(hitElement) >= 1000 then return end setElementHealth(hitElement, getElementHealth(hitElement)+100) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), onClientPlayerWeaponFireFunc )
  18. Wei

    Little problem

    function bus(thePlayer) if ( theSkin == 171 ) then x,y,z = getElementPosition(thePlayer) veh = createVehicle(431, x,y,z) warpPedIntoVehicle(thePlayer, veh) end end addEventHandler ( "onPickupUse", busdrivepickup, bus ) It doesn't give me bus
  19. Wei

    MySql help

    Todd look PM !
  20. Wei

    MySql help

    How can I get database name on my computer. Or what is default ?
  21. Wei

    MySql help

    Now I have problem with the sql resource. How can I make it to it will get settings from settings.xml ? Error:
×
×
  • Create New...