Forum

> > CS2D > Scripts > Private Message CS2D lua Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Private Message CS2D lua Script

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Private Message CS2D lua Script

Bowlinghead
User Off Offline

Zitieren
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.

alt Re: Private Message CS2D lua Script

Surplus
User Off Offline

Zitieren
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! ×
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht