If there is any way to do it, tell me how!
Thanks for your attention.
Scripts
vip is dead the game is still going
vip is dead the game is still going
1

playernamee={}
vip={}
vp={}
hats={}
addhook("join","join_hook")
addhook("startround","startround_hook")
addhook("endround","endhook")
function join_hook(id)
vip[id]=false
hats[id]=0
vp=false
end
function startround_hook()
local randome=math.random(1,32)
x=22*32
y=5*32
if player(randome,"exists") then
if vp==false and vip[randome]==false then
playernamee[randome]=player(randome,"name")
parse('setname '..randome..' '..playernamee[randome]..'(VIP) "1"')
hats[id]=image(--Your Vip Image--)
parse("setpos "..randome.." "..x.." "..y)
vip[randome]=true
vp=true
end
else
startround_hook()
end
end
function endhook(id)
for i=1,32 do
if vip[i]==true then
parse('setname '..i..' '..playernamee[i]..' "1"')
vip[i]=false
freeimage(hats[id])
end
end
vp=false
end
it would be great if @
DC: add an option(In the next update) to continue the game if the VIP dies to get different ends round on a map using the VIP.
princeofpersia: Thanks for your help, it is always useful.
Talented Doge: and @
Chingy: Your comments clarified my doubts, thank you too
1
