Forum

> > CS2D > Scripts > Slow
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Slow

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Slow

sheeL
User Off Offline

Zitieren
Slow Player
How do I type
I type! punish a
and it is with speed 0
could help with that ^ ^?
= D sorry for spanw

alt Re: Slow

EP
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function totable(t,match)
     local cmd = {}
     if not match then match = "[^%s]+" end
     for word in string.gmatch(t, match) do
          table.insert(cmd, word)
     end
     return cmd
end

addhook("say","lol")
function lol(id,txt)
local p = totable(txt)
local cmd = tostring(p[1]) --Make !punish a real command :D
if player(id,"team") == 2 then --Counter Terrorist
if cmd == "!punish" then --Command
local pl = tonumber(p[2]) --The id of the player
parse("speedmod "..pl.." -100")
return 1
end
end
end
I already said it in your other post (Punish mod)
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht