How do I make this work with the promote command?

name5243

Member
addHook("MobjThinker", function(mo) local player = mo.player if player.mo.skin == "sonic" and not (player == server or player == admin) then P_DamageMobj(player.mo, nil, nil, 0, DMG_INSTAKILL) end end)

This seems to only work for whoever made the server and not admins.
How can I make it so it works for people I promote?

Thanks to KevTSP for the script
 
Thanks for the reply

When I do that I get another error :3: ')' expected near 'player'
Post automatically merged:

Do I put mo.player instead of player_t ?
 
Last edited:
Thanks for the reply

When I do that I get another error :3: ')' expected near 'player'
Post automatically merged:

Do I put mo.player instead of player_t ?
Yes, or just player since you have it defined in line 2
 
Hey blur I don't know if your still here but that script seems to lag the game a lot do you know why this might be?
Post automatically merged:

Would MobjThinker be the problem?
Post automatically merged:

Since it executes once per tic
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top