local sampev = require 'lib.samp.events'
function sampev.onSendChat(msg)
if msg:find('@my_rpname') then
nick = sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)))
name, lastname = nick:match('(.+)_(.+)')
return msg:gsub('@my_rpname', string.sub(name, 1, 1)..'.'..lastname)
end
end