厉害救济

there any scripts that can set bambi player with 10s godmode when they respwan ?

5 posts in this topic

There already is such functionality, I think you're bambi for like 5 minutes, however if you pickup a weapon the godmode will be cancelled. 

Share this post


Link to post
Share on other sites
Advertisement

It is easy to create:

Block Listing:

1 - Player spawns in

1a - ExecVM God script (Call Subroutine) - This script turns off player damage, loops doing noting for 10 seconds, then turns it back on, then exits.

2 - Normal spawning actions

 

 

God mode on:

(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) addEventHandler ["handleDamage", { false }];
(vehicle player) allowDamage false;

 

God mode off:

(vehicle player) addEventHandler ["handleDamage", { true }];
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) allowDamage true;

 

It is not that hard to do!  :)

 

You have to be concerned with if they spawn in the air.  They could be in the air >10 seconds.

 

:)

  • Like 2

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.