• DARKRP: How do i get a part of a message?
    2 replies, posted
Hey guys! I was trying to make a chat command that would basicly just kill another player. So you could do like "!Rslay John328" and he would die. So i was just wondering if you could do like ply = (Player said in message) ply:KillSilent() (Not signed by Raz xD)
string.explode, string.find
[code] DarkRP.defineChatCommand("rslay", function(args) // Validate args[1] here local ply = DarkRP.findPlayer(args[1]) // Validate player here ... end) [/code]
Sorry, you need to Log In to post a reply to this thread.