Jump to content

@castillo


Monty

Recommended Posts

Posted

My resource has exported functions, even thought I don't understand what do you want to do, you can take a look at them.

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

Then you can use the exported function:

getAccountGang ( accountName ) 

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

Also, do not create a thread dedicated to a user on forums. Use private message or make it public.

If I helped you, please click the like button on the right ;) Thanks!

Posted

referes to the resource... what's wrong?

   basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
   basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates(thePlayer) 
local gang = getAccountGang ( accountName ) 
if gang == "FBI" then 
       moveObject (basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
       
end 
end 
addEventHandler( "onColShapeHit", basecol, openbase_area69gates ) 

ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org

Posted

so is it correct???

  
   basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
   basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates(thePlayer) 
local gang = exports['gang-resource']:getAccountGang ( getPlayerAccount ( thePlayer ) ) 
if gang == "FBI" then 
       moveObject (basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
       
end 
end 
addEventHandler( "onColShapeHit", basecol, openbase_area69gates ) 
  

ANY SCRIPT REQUEST FOR FREE HERE: http://www.stolka.altervista.org

Posted
Then you can use the exported function:
getAccountGang ( accountName ) 

Read my syntax Michael.

accountName, not account element.

@monty:

basegate = createObject ( 3115, 1728.8000488281, -1378.0999755859, 13.5, 0, 90, 0 ) 
basecol = createColCircle ( 1728.8000488281, -1378.0999755859, 13.5, 7 ) 
  
function openbase_area69gates ( thePlayer ) 
    local gang = exports [ 'gang-resource' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) 
    if ( gang == "FBI" ) then 
        moveObject ( basegate, 5000, 1728.8000488281, -1378.0999755859, 0 ) 
    end 
end 
addEventHandler ( "onColShapeHit", basecol, openbase_area69gates ) 

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.

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