Code:
1,
[COLOR="#808080"] //kick player, with his server split from others.
//The player remains in game, though he is playing by his own. lol[/COLOR]
[COLOR="#808080"][COLOR="#006400"]call RemovePlayer(Player(kick_id),PLAYER_GAME_RESULT_VICTORY)[/COLOR][/COLOR]
2,
[COLOR="#808080"]// kick player, by instantly crash with fatal error. (only he get fatal error).[/COLOR]
[COLOR="#006400"]if Player(kick_id)==GetLocalPlayer()then
call Player(-1)[/COLOR]
3,
[COLOR="#808080"] // Disable Mouse and keyboard.
// move player's screen to black area, they can't move back.[/COLOR]
[COLOR="#006400"]if Player(kick_id)==GetLocalPlayer()then
call EnableUserControl(false)
endif
call SetCameraFieldForPlayer(Player(vfai_z7-1),CAMERA_FIELD_ZOFFSET,-5000,0.1)
[/COLOR]
4,
[COLOR="#808080"] // disable mouse & keyboard,
// start Cinematic mode with kung-fu panda's picture.
// Cinematic mode will last forever, so player can't do anyting [/COLOR]
[COLOR="#006400"] if Player(kick_id)==GetLocalPlayer()then
call EnableUserControl(false)
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(100,100,100,1,"ReplaceableTextures\\CameraMasks\\Panda-n-Cub.blp",100,0)
endif[/COLOR]
5,
[COLOR="#808080"]
// kick player by split his server from others. he can still playing with himself
// start Cinematic mode with kung-fu panda's picture.[/COLOR]
[COLOR="#006400"]call RemovePlayer(Player(kick_id-1),PLAYER_GAME_RESULT_VICTORY)
if Player(kick_id)==GetLocalPlayer()then
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(100,100,100,1,"ReplaceableTextures\\CameraMasks\\Panda-n-Cub.blp",100,0)
endif[/COLOR]
6, [COLOR="#FF0000"](this may not work)[/COLOR]
[COLOR="#808080"] // disconnected message popping up just similar to lag out[/COLOR]
[COLOR="#006400"]if Player(kick_id)==GetLocalPlayer()then
call TriggerSleepAction(1.00)
endif[/COLOR]