Forum

> > CS2D > Scripts > Search for a scripter
Forums overviewCS2D overview Scripts overviewLog in to reply

English Search for a scripter

24 replies
Page
To the start Previous 1 2 Next To the start

old Search for a scripter

Kirito2K
User Off Offline

Quote
Hi us .
I want your help with my script , it's this , no problem with it , but i want to add godmode in admin and mod menu and say option , and make F4 to teleport from place to another just to admin , like in Starkkz admin script , can you help me ?

old Re: Search for a scripter

Marcell
Super User Off Offline

Quote
I just used dinosaur tool and whoala, check out user Apache uwu's post, then you can make one..

Please user Kirito2K: next time try to use this function.. we able to help you, but sometimes not needed, because of there are tons of post already about it...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
godMode={}

addhook("serveraction","_serveraction")
addhook("join","_join")
addhook("hit","_hit")

function _join(id)
     godMode[id]=false
end

function _serveraction(id,action)
     if action==3 then
          if godMode[id]==false then
               msg2(id,"GodMode Activated")
               godMode[id]=true
          else
               msg2(id,"GodMode Deactivated")
               godMode[id]=false
          end
     end
end

function _hit(id)
     if godMode[id]==true then
          return 1
     end
end

old Re: Search for a scripter

TopNotch
User Off Offline

Quote
Made a simple godmode command for you.
Just use !god to (de)activate godmode.
Untested but should work.
Click here to view the code. >

old Re: Search for a scripter

Joni And Friends
User Off Offline

Quote
done! , if you actived the god mode you can't dead and you have admin tag

Sorry for my bad english
More >

old Re: Search for a scripter

Marcell
Super User Off Offline

Quote
It isn't right as well, because everybody able to activate Godmode, then he can use Admin tag too...
u didn't made ipairs or pairs for admins

pm me, then i able to help sniper killer

old Re: Search for a scripter

Joni And Friends
User Off Offline

Quote
user Marcell, like this?
1
adminlist={114160}
so write this in lua
1
2
3
4
5
6
---- hook and function
for _, usgn in ipairs(adminlist) do
if player(id,'usgn') == usgn then
end
end
end

old Re: Search for a scripter

Kirito2K
User Off Offline

Quote
@user Joni And Friends: You don't understand me , i have tag and color , but i want to add in the admin menu say color option , i mean i have a tag and color , and i want to make the god mode just for admins !!

old Re: Search for a scripter

Joni And Friends
User Off Offline

Quote
Done! this the script with god mode and color admin tag menu, have fun user Kirito2K

More >
edited 2×, last 02.04.14 09:42:32 am
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview