Jump to content

Shayan816

Members
  • Posts

    46
  • Joined

  • Last visited

Recent Profile Visitors

1,083 profile views

Shayan816's Achievements

Rat

Rat (9/54)

1

Reputation

  1. local spawns = { { -1569.2819824219, 1196.4373779297, 7.1865711212158, 90 }, { -1661.0703125, 1212.8386230469, 32.897026062012, 90 }, { -1684.5240478516, 1360.486328125, 7.1721897125244, 90 }, { -1768.2357177734, 1175.0441894531, 25.125, 90 } } function spawn( player ) local rnd = math.random( 1, #spawns ) setElementPosition( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3] ) end addCommandHandler("pvp",spawn)
  2. hey, im making a vip panel, and i have set subscription time for the user, so after the due date.. it supposed to remove the player from ACL group automatic, but its not removing.. setTimer( function() time = getRealTime() years = time.year month = time.month day = time.monthday TheDate = years+1900 .."-".. month .."-".. day for index, VIP in ipairs ( getActivationCodes() ) do local Date = gettok ( VIP [ "TimeToEnd" ], 1, string.byte('|') ) if Date == TheDate then if VIP [ "Status" ] == 'true' then setActivationCodeStatus ( VIP [ "ActivationCode" ], 'false' ) aclGroupRemoveObject(aclGetGroup("VIP"), "user."..getAccountName ( getPlayerAccount ( player ) )) for i,player in ipairs (getElementsByType("player")) do if VIP [ "PlayerName" ] == getPlayerName(player) then setElementData(player,"VIP",false) outButDxChat("#708090[VIP System] : #FF0000 Your VIP is end !!",player,0,255,255) end end end end end end,60000,0 ) after the due time ends.. player still can access /vip panel any help ?
  3. where it gone wrong ?? client server any help please ?
  4. setTimer( function() time = getRealTime() years = time.year month = time.month day = time.monthday TheDate = years+1900 .."-".. month .."-".. day for index, VIP in ipairs ( getActivationCodes() ) do local Date = gettok ( VIP [ "TimeToEnd" ], 1, string.byte('|') ) if Date == TheDate then if VIP [ "Status" ] == 'true' then setActivationCodeStatus ( VIP [ "ActivationCode" ], 'false' ) for i,player in ipairs (getElementsByType("player")) do if VIP [ "PlayerName" ] == getPlayerName(player) then setElementData(player,"VIP",false) outButDxChat("#708090[VIP System] : #FF0000 Your VIP is end !!",player,0,255,255) end end end end end end,60000,0 )
  5. hey i am making a vip panel, i created a window to set user VIP expiry date and time but its not working, it just shows VIP Expires in : Date - Time on window i set expiry date 1 week later.. and tried couple of times... but still its not showing time left.. just VIP Expires in : Date - Time on window server Any help ?
  6. maybe there is setTimer function in the script.. check your script
  7. you trying to stream the song ?? if you are trying to stream a radio then use https://wiki.multitheftauto.com/wiki/PlaySound3D
  8. Thank you very much <3 working
  9. maybe try to go in gta san andreas/data/maps and open with notepad.. this maybe ?
  10. Shayan816

    Timer Help

    Hey, how can i add timer to command handler ?? im using this script and i want to add timer, so player can use /spin once in every 10 minutes
  11. Hey, Anyone know This vehicle Skin name or Brand or logo ?
  12. its Working fine for me.. https://wiki.multitheftauto.com/wiki/Main_Page
×
×
  • Create New...