ID:144765
 
Code:
mob
icon='Kirby.dmi'
icon_state="p"
Bumped(O)
if(usr.it)
if(src.frozen)
return
else
world<<"[src] was frozen by [O]!"
pf+=1
src.overlays+='frozen.dmi'
src.frozen=1
check()
else
if(src.frozen)
world<<"[src] was unfrozen by [O]!"
pf-=1
src.overlays-='frozen.dmi'
src.frozen=0
else
return


OK..This is obviously how you freeze a player, how can I make it where if your frozen 3 times that the player becomes IT as well? I thought of using a loop but I don't think that it would work...any suggestions?

Give them a var that says how many times they have been frozen, and in the bump check that var, and if it is 3 after you up it, then make them it and change all the players vars back to 0.

§atans§pawn
mob
icon='Kirby.dmi'
icon_state="p"
Bumped(O)
if(usr.it)
if(src.frozen)
return
else
world<<"[src] was frozen by [O]!"
pf+=1
src.caught+1
src.overlays+='frozen.dmi'
src.frozen=1
if(src.caught>=3)
src.it=1
return
check()
else
if(src.frozen)
world<<"[src] was unfrozen by [O]!"
pf-=1
src.overlays-='frozen.dmi'
src.frozen=0
else
return

var part
var/mob/caught=0


Hooookay doesnt look like much but somthing like this I thinkish lol.