Jump to content

gangs....


Deepu

Recommended Posts

Hey can any pro guy tell me how I can make a gang with lua? Like, Hooligans gang or Full of pain gang?

Also if the gang is within col shape then how to get group colour? And how to save group's turfs?

Please answer these questions with a detailed explanation please :)

Link to comment

uhmmm well if I use tables then how can I connect it to a function? How can I make a group with those tables?

for example:

diskHead = { 
   {Hooligans} 
   {expendables} 
   {full of pain} 
} 

now How will I make a group with that gang list?

Link to comment

Agree to create col shape and radar area's with hercule. You need to make exports something like:

  
function getGangTurfColor() 
local lop = getElementData(player,"group") 
for k,v in ipairs(lop) do 
return getElementData(group,"gangColor") 
end 
end 
  

gangColor's value should be in R,G,B I suggest.

The players group's value should be his group name.

EDIT: Your tables are wrong.

  
 diskHead = {} 
function createGroup(name,...) 
local name = table.concat({...},"") 
local owner = getPlayerName(source) 
if name then 
diskHead[name] = tostring (owner) 
end 
addCommandHandler("creategroup",createGroup) 
  

Edited by Guest
Link to comment
Agree to create col shape and radar area's with hercule. You need to make exports something like:
  
function getGangTurfColor() 
local lop = getElementData(player,"group") 
for k,v in ipairs(lop) do 
return getElementData(group,"gangColor") 
end 
end 
  

gangColor's value should be in R,G,B I suggest.

The players group's value should be his group name.

EDIT: Your tables are wrong.

  
 diskHead = {} 
function createGroup(name,...) 
local name = table.concat({...},"") 
local owner = getPlayerName(source) 
if name then 
diskHead[name] = tostring (owner) 
end 
addCommandHandler("creategroup",createGroup) 
  

Your code doesn't make any sense at all.

Please don't post here if you don't know what you're talking about. You misguide the player that is asking for help.

Link to comment

your table was empty. How would an empty table be useful Anu? or the empty table is edit area?

and can you tell me how can I save turfs of a particular gang with account data?

also if possible can you tell me how many turfs should be made in LV?

Cheezed can you answer these?

Edited by Guest
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...