示例#1
0
 public async Task OnPlayerConnect_Handler(ClassicPlayer player, string reason)
 {
     if (player == null || !player.Exists)
     {
         return;
     }
     AltAsync.Do(() =>
     {
         player.SetSyncedMetaData("PLAYER_SPAWNED", false);
         player.SetSyncedMetaData("ADMINLEVEL", 0);
         player.SetPlayerIsCuffed("handcuffs", false);
         player.SetPlayerIsCuffed("ropecuffs", false);
         setCefStatus(player, false);
     });
     player.SetPlayerCurrentMinijob("None");
     player.SetPlayerCurrentMinijobRouteId(0);
     player.SetPlayerCurrentMinijobStep("None");
     player.SetPlayerCurrentMinijobActionCount(0);
     player.SetPlayerFarmingActionMeta("None");
     User.SetPlayerOnline(player, 0);
     player.EmitLocked("Client:Pedcreator:spawnPed", ServerPeds.GetAllServerPeds());
     CreateLoginBrowser(player);
 }