Jump to content

[HELP]Restrict


gghvcffcv

Recommended Posts

Check if the player is in the gang, by using their account name in the argument for the "getAccountGang" exported function.

Wich are the arguments?

createTeam ( "Official Squad", 0, 0, 255 )

function aceptarr (thePlayer)

if getAccountGang (thePlayer, SWAT) then

local theTeam = getTeamFromName ( "Official Squad" )

if ( theTeam ) then

setPlayerTeam ( source, theTeam )

setPlayerNametagColor ( source, 0, 0, 255 )

setElementModel ( source, 285 )

giveWeapon ( source, 31, 550 )

giveWeapon ( source, 23, 550 )

giveWeapon ( source, 3, 550 )

giveWeapon ( source, 29, 550 )

giveWeapon ( source, 46, 550 )

giveWeapon ( source, 41, 5000 )

giveWeapon ( source, 34, 550 )

end

end

end

addEvent( "onGreeting", true )

addEventHandler( "onGreeting", root, aceptarr )

doesn't works

Link to comment
Check if the player is in the gang, by using their account name in the argument for the "getAccountGang" exported function.

Wich are the arguments?

createTeam ( "Official Squad", 0, 0, 255 )

function aceptarr (thePlayer)

if getAccountGang (thePlayer, SWAT) then

local theTeam = getTeamFromName ( "Official Squad" )

if ( theTeam ) then

setPlayerTeam ( source, theTeam )

setPlayerNametagColor ( source, 0, 0, 255 )

setElementModel ( source, 285 )

giveWeapon ( source, 31, 550 )

giveWeapon ( source, 23, 550 )

giveWeapon ( source, 3, 550 )

giveWeapon ( source, 29, 550 )

giveWeapon ( source, 46, 550 )

giveWeapon ( source, 41, 5000 )

giveWeapon ( source, 34, 550 )

end

end

end

addEvent( "onGreeting", true )

addEventHandler( "onGreeting", root, aceptarr )

doesn't works

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