• Help my script dont work
    2 replies, posted
Hello, a scripter made a group prop limit thing for my server, but it don't working it don't count or something and it does no stop you to spawn prop when you hit the max proplimit for that server: Here is the code: [CODE]function SetPropLimits(ply) timer.Simple(5, function() if ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "moderator" then ply.MaxProps = 280 elseif ply:CheckGroup("super donator") then ply.MaxProps = 350 else ply.MaxProps = 200 end end) end hook.Add("PlayerInitialSpawn", "SetPropLimits", SetPropLimits) function CheckPropLimit(ply, model, ent) if ply:GetCount("props") >= ply.MaxProps then GAMEMODE:Notify(ply, 1, 6, "You have reached your prop limit!") ent:Remove() end end hook.Add("PlayerSpawnedProp", "CheckPropLimit", CheckPropLimit) [/CODE] [highlight](User was banned for this post (""fix my code", undescriptive thread title, didn't even bother pasting the lua error if any" - Gran PC))[/highlight]
Note that the title of this section is "developer's discussion", not "script support section". You've already said you didn't code it and obviously do not know how to code, therefore you aren't a developer. Go to coderhire.com and see if someone will fix the script for you, find a new coder to continue work on your project, or learn to code yourself (it's not hard).
To begin, I'd use print("Test") to see if it is running in the first place. And as a suggestion, you can use PlayerSpawnProp and return false instead of PlayerSpawn[b]ed[/b]Prop and deleting the entity.
Sorry, you need to Log In to post a reply to this thread.