Jump to content

gangs....


Deepu

Recommended Posts

Posted

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 :)

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted

Well, to start with, MTA doesn't have "gang" or "turf" functions, you gotta make everything yourself.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

ok but can you tell me how?

I have made col shapes and radar areas.

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted

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?

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted (edited)

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
Posted

ok thanks anu.

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted
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.

Posted

I suggest that you use sql databases to have a list of gangs, use setAccountData for a player to be in a gang and you can also use sql database for associating gangs with their respective colors.

Posted

ok but I don't understand the wiki explanation of db functions....

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted (edited)

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

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

Posted

I blocked you when you quit :D send contact request.

WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.

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...