hey guys
i need help with donator shipments
i have ulx but i got
AddCustomShipment("Winchester 73", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 3500, 10, false, 123, false, {TEAM_GUN}, function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end)
This:
[CODE]ply:GetUserGroup() == "donator"[/CODE]
Should be this:
[CODE]ply:GetUserGroup("donator")[/CODE]
Also, use the code tags when posting and could you also explain the error that you are getting?
[QUOTE=Fortune11709;42360394]This:
[CODE]ply:GetUserGroup() == "donator"[/CODE]
Should be this:
[CODE]ply:GetUserGroup("donator")[/CODE]
Also, use the code tags when posting and could you also explain the error that you are getting?[/QUOTE]
GetUserGroup doesn't take any arguments but return the usergroup.
[QUOTE=Fortune11709;42360394]This:
[CODE]ply:GetUserGroup() == "donator"[/CODE]
Should be this:
[CODE]ply:GetUserGroup("donator")[/CODE]
[/QUOTE]
I think you meant ply:[B]Check[/B]UserGroup("donator"), as GetUserGroup doesn't take any args as ms333 said.
ply:IsUserGroup('donator')
[QUOTE=Internet1001;42365401]ply:IsUserGroup('donator')[/QUOTE]
Woops, just noticed that. Yeah, that is what it is meant to be.
Sorry, you need to Log In to post a reply to this thread.