This is The Forum to be [Knife User] clan
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Map and Lua?

View previous topic View next topic Go down 
AuthorMessage
sta2109
Banned
Banned


Posts : 29
Points : 45
Join date : 2014-02-14

PostSubject: Map and Lua?   Sun Feb 16, 2014 6:53 pm

Hello All Users and Mods.

Im building map (Happy Town) for clan :)

And lua :)(Admin's,vip's,mod's,smod's respawn in huoses )

Code:

Code:
rank = {
     [1] = {
          user = {1,1234};
          spawn = {0,0};
     };
     [2] = {
          user = {1,1234};
          spawn = {0,0};
     };
     [3] = {
          user = {1,1234};
          spawn = {0,0};
     };
     [4] = {
          user = {1,1234};
          spawn = {0,0};
     };
}

addhook('spawn','hook_spawn')
function hook_spawn(id)
     go_spawn(id)
end

function check_rank(id)
     for _, i in pairs(rank) do
          for k, v in pairs(i.user) do
               if player(id,'usgn') == v then
                    return _
               end
          end
     end
     return 0
end

function no_user(id)
     if check_rank(id) > 0 then
          return true
     end
     return false
end

function go_spawn(id)
     if no_user(id) then
          parse('setpos '..id..' '..rank[check_rank(id)].spawn[1]..' '..rank[check_rank(id)].spawn[2])
     end
end

Back to top Go down
View user profile
Shark Boy
Clan Leader
Clan Leader
avatar

Posts : 88
Points : 103
Join date : 2014-01-15
Age : 18
Location : algeria

PostSubject: Re: Map and Lua?   Mon Feb 17, 2014 11:58 am

nice youare scripter :Dwe need a scritper so thast good you want to be staff and in the server mod ??????????
Back to top Go down
View user profile http://knifeuser.lolbb.com
sta2109
Banned
Banned


Posts : 29
Points : 45
Join date : 2014-02-14

PostSubject: Re: Map and Lua?   Mon Feb 17, 2014 12:02 pm

Im better mapper :)
Back to top Go down
View user profile
Shark Boy
Clan Leader
Clan Leader
avatar

Posts : 88
Points : 103
Join date : 2014-01-15
Age : 18
Location : algeria

PostSubject: Re: Map and Lua?   Mon Feb 17, 2014 12:05 pm

but you know how to script want to be staff or gfx-team ???????? ok you will staff now


Last edited by Shark Boy on Mon Feb 17, 2014 12:08 pm; edited 1 time in total
Back to top Go down
View user profile http://knifeuser.lolbb.com
sta2109
Banned
Banned


Posts : 29
Points : 45
Join date : 2014-02-14

PostSubject: Re: Map and Lua?   Mon Feb 17, 2014 12:07 pm

Double-Post?? Hmmm i can staff
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Map and Lua?   

Back to top Go down
 
Map and Lua?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
[Knife User] Clan :: Server-
Jump to: