function vip(thePlayer, command,tplayer)
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then
local VIP = aclGetGroup("VIP")
local tplayer = getPlayerFromName(tplayer)
if ( tplayer ) and isGuestAccount(getPlayerAccount(tplayer) ~= true then
acladd = aclGroupAddObject (VIP, "user."..getAccountName(getPlayerAccount(tplayer))
if (acladd) then
givePlayerMoney(tplayer, 1)
outputChatBox("test passed.", tplayer, 255, 255, 255, true)
else
outputChatBox(getPlayerName(tplayer).." is already VIP.", thePlayer, 255, 0, 0, true)
end
else
outputChatBox("Player not online or not logged in.", thePlayer, 255, 0, 0, true)
end
end
end
addCommandHandler("setvip", vip)
Alright so you have to enter the player's name now not the account name, like a player is called "test" you type /setvip test and the player gets added to the ACL group VIP gets 1$ and an output, if the account has been added already or the player doesnt exist / is not logged in you'll get an error output.