Jump to content

[Help]Radar area


3B00DG4MER

Recommended Posts

Hello,Today I made a system which get Radar area Size X and Y

i let the money of turf is sum of Size X and Y

it's Say's

Attempt to call local 'money'

Here is Server Side:

I delete somethings to protect script

local radarareas = getElementsByType ( "radararea" ) -- get a table of radararea elements 
for k, theArea in ipairs(radarareas) do 
local sizeX, sizeY = getRadarAreaSize ( theArea ) 
local money = (tonumber(sizeX)*tonumber(sizeY)) 
                            outputChatBox("This turf do not belong to anyone. Wait 2 minutes to capture the turf and win "..money"$", player, 0, 255, 0, false) 
                        end 
                        end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...