Jump to content

BigBoss1234

Members
  • Posts

    14
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BigBoss1234's Achievements

Square

Square (6/54)

0

Reputation

  1. Can Nerd Gaming Gamemode Police Job Salary Auto Salary Script please? . . . . Sorry for my bad English
  2. local job = exports.NGJobs:getPlayerTeam(player) ??
  3. ? http://blob:https://web.whatsapp.com/2a50cd3f-050f-4902-b005-7596351d7c6f
  4. Bro, a playout does not happen from Resource, please make one for me A big help? getPlayerJob ro getPlayerJobs?
  5. Not Warking function sendJobPayout() local playerJobs = {} -- getting all police for i, player in ipairs(getElementsByType('player')) do local job = exports.NGJobs:getPlayerJob(player) if (job == 'Police Officer') then if (playerJobs[player] == nil) then playerJobs[player] = 0 end playerJobs[player] = playerJobs[player] + 1 end end -- pay the players for player, count in pairs(playerJobs) do local cash = count * tonumber(get("*PAYOUT_CASH")) givePlayerMoney(player, cash) exports.NGMessages:sendClientMessage("Police: Here is $" .. tostring(cash) .. " payout.", player, 0, 255, 0) end end -- set the timer local payoutTime = tonumber(get("*PAYOUT_TIME")) if payoutTime then setTimer(sendTurfPayout, 60 * payoutTime * 1000, 0) end <meta> <info author="BigBoss" name="Police Playout" type='script' version="1.0" /> <script src="server.lua" type="server" /> <settings> <setting name="*PAYOUT_TIME" value="30" desc="Payout timer in minutes" /> <setting name="*PAYOUT_CASH" value="100000" desc="Money per group member per turf" /> </settings> </meta>
  6. -- Group payout timer function sendTurfPayout ( ) local playerJobs = { } for i, Police Officer in pairs ( getElementsByType ( 'player' ) ) do local exports.NGJobs:getPlayerJobs ( 'Police Officer' ) if ( g and playerJobs [ g ] and playerJobs [ g ] > 0 ) then local c = playerJobs [ g ] * tonumber ( get ( "*PAYOUT_CASH" ) ) givePlayerMoney ( Police Officer, c ) exports.NGMessages:sendClientMessage ( "Police: Here is $ "( playerJobs [ g ] ).."playout" v, 0, 255, 0 ) end end end setTimer ( sendTurfPayout, (60*tonumber(get("*PAYOUT_TIME")))*1000, 0 ) Help fro fix that
  7. Job payout timer -- Group payout timer function sendTurfPayout ( ) local playerJobs = { } for i, Police Officer in pairs ( getElementsByType ( 'player' ) ) do local exports.NGJobs:getPlayerJobs ( 'Police Officer' ) if ( g and playerJobs [ g ] and playerJobs [ g ] > 0 ) then local c = playerJobs [ g ] * tonumber ( get ( "*PAYOUT_CASH" ) ) givePlayerMoney ( Police Officer, c ) exports.NGMessages:sendClientMessage ( "Police: Here is $ "( playerJobs [ g ] ).."playout" v, 0, 255, 0 ) end end end setTimer ( sendTurfPayout, (60*tonumber(get("*PAYOUT_TIME")))*1000, 0 )
  8. How to add more weapons to (Not replace) Help me Plz
  9. ? How to add more weapons to MTA (Not replace) help me
×
×
  • Create New...