Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Commit

Permalink
PM fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
luffynando committed Nov 21, 2017
1 parent 5c12fa2 commit 6701bfa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion matl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function onNotify(args)
end

function iambot()
gsc.iprintln("^2[M^7AT^1L] ^3v0.6 ^5by ^1luffy^7nan^2do")
gsc.iprintln("^2[M^7AT^1L] ^3v0.7 ^5by ^1luffy^7nan^2do")
end

function onPlayerConnecting(args)
Expand Down
15 changes: 10 additions & 5 deletions matl/commandparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ function commandparser.groups(player)
end

function commandparser.credits(player)
player:tell("^2[M^7AT^1L] ^3v0.6 ^5by ^2~|^7M^1|~ ^7Clan ^2Maniacos")
player:tell("^2[M^7AT^1L] ^3v0.7 ^5by ^2~|^7M^1|~ ^7Clan ^2Maniacos")
player:tell("^2[M^7AT^1L] ^3Send^5me ^2Pack ^7in my ^2teamspeak")
end

Expand Down Expand Up @@ -812,10 +812,15 @@ function commandparser.pm(player,args)
local segundoplayer2 = getPlayer(player, partes[1])
if segundoplayer2 ~=nil then
if partes[2] ~= nil and partes[2] ~= "" then
local msg= lang.pm_sintax_msg:gsub("@player",player.name)
msg= msg:gsub("@msg",partes[2])
commandparser:sayToPlayer(segundoplayer2,msg)
commandparser:sayTellPlayer(player,lang.pm_succesful_msg)
local newmsg = string.sub(args,partes[1]:len()+2)
if newmsg ~= nil and newmsg ~="" and commandparser:emptyAlias(newmsg) ~= true then
local msg= lang.pm_sintax_msg:gsub("@player",player.name)
msg= msg:gsub("@msg",newmsg)
commandparser:sayToPlayer(segundoplayer2,msg)
commandparser:sayTellPlayer(player,lang.pm_succesful_msg)
else
player:iPrintLnBold(lang.tell_error_nomsg)
end
else
player:iPrintLnBold(lang.tell_error_nomsg)
end
Expand Down

0 comments on commit 6701bfa

Please sign in to comment.