gms_script_set_login

Usage: gms_script_set_login ( script_id )

Description

Sets the script that should be executed when a new player logs in.

The script should take 1 argument:
argument0: The 'other player' object.

When the simple mode is disabled, or no other player object is set, argument0 will be the player_id of the new player.

Example

//Sets the script scr_login to be executed when a new player logs in
gms_script_set_login(scr_login)

Replies (0)

Last message on 24 Apr 2017