privMsg( username,message )
privMsg( message )
privMsg can be used with userName or no
in chat just type
!pm gai-luron,hello my friend
or if you want absolutely this function create a sub like
in this case you haven't to change anything in your code
privMsg( message )
privMsg can be used with userName or no
CASE "!pm":
$tmp = splitToArray( $argv,"," )
privMsg( $tmp[0], "You have received a private message from" . GetCurrentPlayer("UserName" ) );
privMsg( $tmp[0], $tmp[1] );
BREAK;
in chat just type
!pm gai-luron,hello my friend
or if you want absolutely this function create a sub like
in this case you haven't to change anything in your code
Sub userMsg( $userOrig,$userDest,$msg )
PrivMsg($userDest,"You have receive a message from " . $userOrig );
PrivMsg($userDest, $msg );
EndSub