[Knife User] Clan
Would you like to react to this message? Create an account in a few clicks or log in to continue.


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

 

 Map and Lua?

Go down 
2 posters
AuthorMessage
sta2109
Banned
Banned



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

Map and Lua? Empty
PostSubject: Map and Lua?   Map and Lua? I_icon_minitimeSun 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
Shark Boy
Clan Leader
Clan Leader
Shark Boy


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

Map and Lua? Empty
PostSubject: Re: Map and Lua?   Map and Lua? I_icon_minitimeMon 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
https://knifeuser.forumotion.com
sta2109
Banned
Banned



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

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

Im better mapper :)
Back to top Go down
Shark Boy
Clan Leader
Clan Leader
Shark Boy


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

Map and Lua? Empty
PostSubject: Re: Map and Lua?   Map and Lua? I_icon_minitimeMon 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
https://knifeuser.forumotion.com
sta2109
Banned
Banned



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

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

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





Map and Lua? Empty
PostSubject: Re: Map and Lua?   Map and Lua? I_icon_minitime

Back to top Go down
 
Map and Lua?
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: