Camper

@MAD_DAD

hello MAD_DAD.

you who know everything

Can you help me understand what each of these commands mean.

It happens that they tell me that users move within the same site and it doesn’t come out that they are camper…

And suisidio mode is enabled, if you want to change it, send them as a spectator or expel them. What do I have to modify? many thanks for everything

self endon( “death” );
self endon( “disconnect” );
self endon( “joined_spectators” );
level endon( “game_ended” );
my_camp_time = 0;
have_i_been_warned = true;
max_distance = 15; //modificar para adaptar
camp_time = 6; //modificar para adaptar

self endon( “death” );
Script ends on player death

self endon( “disconnect” );
Script end on player disconnection

self endon( “joined_spectators” );
Script ends on player joining spectate

level endon( “game_ended” );
Script ends when game ends

These are also to stop infinite loops

my_camp_time = 0;
To revert camp time counter to zero

have_i_been_warned = true;
Checks to see if you have already had a camp warning

max_distance = 15; //modificar para adaptar
Distance you have to move to stop being a camper, this needs to be around 80 not 15

camp_time = 6; //modificar para adaptar
Time you are allowed to stay in max_distance area. 6 seconds is too short

send them as a spectator or expel them. What do I have to modify?
Will answer this when at PC, on my phone at the moment

1 Like

Change

self suicide();

to

kick(self getEntityNumber(),"^1Autokicked for Camping.");

or

self [[level.spectator]]();
1 Like