MakeCT / T command 
23 comments Hello Guys!
I want to share my MakeCT / T command with you because i think its not useless and everyone can use it
Well its perfect for a Zombie server or something like that...
Commands:
!makect -- make you an CT
!maket -- make you an T
If you want to use a msg every minute, remove the -- in the last 4 lines
Put the lua file in sys/lua folder. Add to the server.lua following thing:
Have Fun with it!
Greetings
I want to share my MakeCT / T command with you because i think its not useless and everyone can use it

Well its perfect for a Zombie server or something like that...
Commands:
!makect -- make you an CT
!maket -- make you an T

If you want to use a msg every minute, remove the -- in the last 4 lines
Put the lua file in sys/lua folder. Add to the server.lua following thing:
Code:
1
dofile("sys/lua/makectt.lua")
Have Fun with it!
Greetings


Comments
23 commentsLog in!
You need to log in to be able to write comments!Log in

Very very good script I think.
That was a lot of work because it is a great script.
Simple function, but difficult to produce it.
That was a lot of work because it is a great script.
Simple function, but difficult to produce it.
07.12.10 03:08:30 pm
wit h this i can be ct:D yeaaa?? and give me wfw ip pls i lost him i dont know how?

No as i said it is good for servers that use menus so if ppl use this in such servers this is usefull and mine is useless xD. Anyway its good f ppl to learn on how to siply use Hooks


There is already same thing but even with menu, so, I think, that is smth like... repeat.
Thanks for the much Ratings
@ batlaizys
aha. But i wanted to post it too..
@Passer
great that you want to learn LUA by using luas from the script archive

@ batlaizys
aha. But i wanted to post it too..
@Passer
great that you want to learn LUA by using luas from the script archive


Dude... I have already made such thing. And more you dont have to write anything, just press buttons and ur done. BUT it could be as usefull as mine if you put it in script that already has menus. So Nice

mkte={}
mkte.team={['!maket']={1,'t'},['!makect']={2,'ct'}}
mkte.parse=true
addhook('say','mkte.say')
function mkte.say(i,t)
if (mkte.team[t] and mkte.parse==true) then
local team=mkte.team[t]
if (player(i,'team')~=team[1]) then
parse('make'..team[2]..' '..i)
parse('setdeaths '..i..' '..player(i,'deaths')-1)
end
return 1
end
end
mkte.team={['!maket']={1,'t'},['!makect']={2,'ct'}}
mkte.parse=true
addhook('say','mkte.say')
function mkte.say(i,t)
if (mkte.team[t] and mkte.parse==true) then
local team=mkte.team[t]
if (player(i,'team')~=team[1]) then
parse('make'..team[2]..' '..i)
parse('setdeaths '..i..' '..player(i,'deaths')-1)
end
return 1
end
end