sta2109 Banned
Posts : 29 Points : 45 Join date : 2014-02-14
| Subject: 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
| |
|
Shark Boy Clan Leader
Posts : 88 Points : 103 Join date : 2014-01-15 Age : 25 Location : algeria
| Subject: 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 ?????????? | |
|
sta2109 Banned
Posts : 29 Points : 45 Join date : 2014-02-14
| Subject: Re: Map and Lua? Mon Feb 17, 2014 12:02 pm | |
| | |
|
Shark Boy Clan Leader
Posts : 88 Points : 103 Join date : 2014-01-15 Age : 25 Location : algeria
| Subject: 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 | |
|
sta2109 Banned
Posts : 29 Points : 45 Join date : 2014-02-14
| Subject: Re: Map and Lua? Mon Feb 17, 2014 12:07 pm | |
| Double-Post?? Hmmm i can staff | |
|
Sponsored content
| Subject: Re: Map and Lua? | |
| |
|