Jump to content

Small help.


Sparrow

Recommended Posts

Hello all,

I do a script that only admins, Super Moderator and Moderators canjoin staff team in TAB, it's workign well, but the probletem is the skin, I set it a CJ skin this clothes, I get the skin but the clothes no.

This is my script:

function setStaffSkin (thePlayer) 
    if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin", "Moderator", "SuperModerator"))) then 
        elseif setPedSkin ( thePlayer, 0 ) then 
            addPedClothes ( source, "suit2grn", "suit2", 0 ) 
            addPedClothes ( source, "elvishair", "elvishair", 1 ) 
            addPedClothes ( source, "suit1trblk2", "suit1tr", 2 ) 
            addPedClothes ( source, "shoespatz", "shoe", 3 ) 
            addPedClothes ( source, "neckdollar", "neck", 13 ) 
            addPedClothes ( source, "watchcro2", "watch", 14 ) 
            addPedClothes ( source, "glasses01dark", "glasses01", 15 ) 
            addPedClothes ( source, "boaterblk", "boater", 15 ) 
    end 
end 
addCommandHandler ( "staff", setStaffSkin) 

And this is the errors:

[2011-12-18 12:20:32] SCRIPT: Sparrow(Sparrow) set his script debug mode to 3

[2011-12-18 12:20:36] WARNING: staff\staff.lua:17: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:18: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:19: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:20: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:21: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:22: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:23: Bad argument @ 'addPedClothes'

[2011-12-18 12:20:36] WARNING: staff\staff.lua:24: Bad argument @ 'addPedClothes'

Some help please. Thank you.

Link to comment

Try this:

function setStaffSkin (thePlayer) 
    if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin", "Moderator", "SuperModerator"))) then 
setPedSkin ( thePlayer, 0) 
            addPedClothes ( source, "suit2grn", "suit2", 0 ) 
            addPedClothes ( source, "elvishair", "elvishair", 1 ) 
            addPedClothes ( source, "suit1trblk2", "suit1tr", 2 ) 
            addPedClothes ( source, "shoespatz", "shoe", 3 ) 
            addPedClothes ( source, "neckdollar", "neck", 13 ) 
            addPedClothes ( source, "watchcro2", "watch", 14 ) 
            addPedClothes ( source, "glasses01dark", "glasses01", 15 ) 
            addPedClothes ( source, "boaterblk", "boater", 15 ) 
    end 
end 
addCommandHandler ( "staff", setStaffSkin) 

Link to comment
  • Scripting Moderators
function setStaffSkin (thePlayer) 
    if (isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin", "Moderator", "SuperModerator"))) then 
            setPedSkin ( thePlayer, 0 ) 
            addPedClothes ( thePlayer, "suit2grn", "suit2", 0 ) 
            addPedClothes ( thePlayer, "elvishair", "elvishair", 1 ) 
            addPedClothes ( thePlayer, "suit1trblk2", "suit1tr", 2 ) 
            addPedClothes ( thePlayer, "shoespatz", "shoe", 3 ) 
            addPedClothes ( thePlayer, "neckdollar", "neck", 13 ) 
            addPedClothes ( thePlayer, "watchcro2", "watch", 14 ) 
            addPedClothes ( thePlayer, "glasses01dark", "glasses01", 15 ) 
            addPedClothes ( thePlayer, "boaterblk", "boater", 15 ) 
    end 
end 
addCommandHandler ( "staff", setStaffSkin) 

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