[LUA]
local PointsToGive = // for example ALL NPC’s +10
timer.Create( “GivePoints”, 300, 0, function()
for k, v in ipairs( player.GetAll() ) do
v:GivePoints( PointsToGive )
v:PrintMessage( HUD_PRINTTALK, “[PAIDAY!]Every NPC is money, here are your … points”);
end
end )
[/LUA]
i have problems with line one, i can’t find a command that count all npc’s,
and with the last line that need to tell the user howmany points he got.
Thanks,