Forum

> > CS2D > Scripts > Private Message CS2D lua Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Private Message CS2D lua Script

10 replies
To the start Previous 1 Next To the start

old Re: Private Message CS2D lua Script

Bowlinghead
User Off Offline

Quote
I dont understant.
I can make lua scripts. But if you cant make lua scripts its pointless to show you the "tricks" how to make it.
But I want to know how to make these PMs for only 1 Player too.

old Re: Private Message CS2D lua Script

Surplus
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook ("say","pmsent")
function pmsent(id,txt)
if string.find(txt,"!pm") then
local to4=txt:sub(5,6)
msg2 (id,"©000255000You have sent a pm to "..player(to4,"name").."!")
return 1;
end
end

addhook ("say","pmrecieve")
function pmrecieve(id,txt)
local to1=txt:sub(1,3)
local to2=txt:sub(5,6)
local to3=txt:sub(8)
if to1=="!pm" then
msg2 (to2,"©000255255"..player(id,"name").."(pm): "..to3)
end
end

Example how to send.
!pm 01 Hi! √
!pm 1 Hi! ×
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview