I've a donation system. But i can't give points through SteamID.
Error code: "ulx givepoints", argument #1: no targets found.
The reasony why is because i need the in-game name, not the SteamID. But i don't know what i need to type insted of SteamID in this script.
RunConsoleCommand( "ulx", "adduserid", "" .. ply:SteamID() .. "", "Group")
RunConsoleCommand( "ulx", "givepoints", "" .. ply:WhatToTypeHere?() .. "", "Amount")
But if there's two persons with the same name in the server, then 1 of the wrong player or both would recive the points. which is kinda bad.
[editline]2nd February 2015[/editline]
Fixed it, ply:GetName :)
Sorry, you need to Log In to post a reply to this thread.