I'm making chat commands for my game and I was wondering how I would make a chat command like ":givecash deathmaster607 532" but I don't know how to go past the player's name in the message to get to the number since I don't know how many characters they have in their name. (if that makes any sense)
Please help me if you know how!

6 comments
Not all of my admins have access to the Console. I'm adding this chat command so that any admin can use it, not just the ones that have access to the console.
oh i understand you could of said it then I can help you with that though
Mainly People would use admin or other people would search it up
I'm trying not to use free models in my game and all the videos I look at don't tell me how to give players besides myself cash
oh ok that makes sense
admin isnt really a free model most people use it but okay youtube most tell you answer like most of the videos should if i search it up ill probably have stuff popped on